google-cloud-bigquery-analytics_hub-v1 0.3.0 → 0.5.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/AUTHENTICATION.md +72 -99
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/client.rb +763 -15
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/operations.rb +803 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/paths.rb +19 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/rest/client.rb +2363 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/rest/operations.rb +897 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/rest/service_stub.rb +1402 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/rest.rb +60 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service.rb +7 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/rest.rb +39 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/version.rb +1 -1
- data/lib/google/cloud/bigquery/analytics_hub/v1.rb +5 -0
- data/lib/google/cloud/bigquery/analyticshub/v1/analyticshub_pb.rb +24 -1
- data/lib/google/cloud/bigquery/analyticshub/v1/analyticshub_services_pb.rb +17 -0
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/cloud/bigquery/analyticshub/v1/analyticshub.rb +346 -32
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +144 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +15 -5
@@ -0,0 +1,2363 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/errors"
|
20
|
+
require "google/cloud/bigquery/analyticshub/v1/analyticshub_pb"
|
21
|
+
require "google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/rest/service_stub"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module Bigquery
|
26
|
+
module AnalyticsHub
|
27
|
+
module V1
|
28
|
+
module AnalyticsHubService
|
29
|
+
module Rest
|
30
|
+
##
|
31
|
+
# REST client for the AnalyticsHubService service.
|
32
|
+
#
|
33
|
+
# The `AnalyticsHubService` API facilitates data sharing within and across
|
34
|
+
# organizations. It allows data providers to publish listings that reference
|
35
|
+
# shared datasets. With Analytics Hub, users can discover and search for
|
36
|
+
# listings that they have access to. Subscribers can view and subscribe to
|
37
|
+
# listings. When you subscribe to a listing, Analytics Hub creates a linked
|
38
|
+
# dataset in your project.
|
39
|
+
#
|
40
|
+
class Client
|
41
|
+
# @private
|
42
|
+
DEFAULT_ENDPOINT_TEMPLATE = "analyticshub.$UNIVERSE_DOMAIN$"
|
43
|
+
|
44
|
+
include Paths
|
45
|
+
|
46
|
+
# @private
|
47
|
+
attr_reader :analytics_hub_service_stub
|
48
|
+
|
49
|
+
##
|
50
|
+
# Configure the AnalyticsHubService Client class.
|
51
|
+
#
|
52
|
+
# See {::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client::Configuration}
|
53
|
+
# for a description of the configuration fields.
|
54
|
+
#
|
55
|
+
# @example
|
56
|
+
#
|
57
|
+
# # Modify the configuration for all AnalyticsHubService clients
|
58
|
+
# ::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.configure do |config|
|
59
|
+
# config.timeout = 10.0
|
60
|
+
# end
|
61
|
+
#
|
62
|
+
# @yield [config] Configure the Client client.
|
63
|
+
# @yieldparam config [Client::Configuration]
|
64
|
+
#
|
65
|
+
# @return [Client::Configuration]
|
66
|
+
#
|
67
|
+
def self.configure
|
68
|
+
@configure ||= begin
|
69
|
+
namespace = ["Google", "Cloud", "Bigquery", "AnalyticsHub", "V1"]
|
70
|
+
parent_config = while namespace.any?
|
71
|
+
parent_name = namespace.join "::"
|
72
|
+
parent_const = const_get parent_name
|
73
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
74
|
+
namespace.pop
|
75
|
+
end
|
76
|
+
default_config = Client::Configuration.new parent_config
|
77
|
+
|
78
|
+
default_config.timeout = 60.0
|
79
|
+
default_config.retry_policy = {
|
80
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
81
|
+
}
|
82
|
+
|
83
|
+
default_config
|
84
|
+
end
|
85
|
+
yield @configure if block_given?
|
86
|
+
@configure
|
87
|
+
end
|
88
|
+
|
89
|
+
##
|
90
|
+
# Configure the AnalyticsHubService Client instance.
|
91
|
+
#
|
92
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
93
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
94
|
+
# should be made on {Client.configure}.
|
95
|
+
#
|
96
|
+
# See {::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client::Configuration}
|
97
|
+
# for a description of the configuration fields.
|
98
|
+
#
|
99
|
+
# @yield [config] Configure the Client client.
|
100
|
+
# @yieldparam config [Client::Configuration]
|
101
|
+
#
|
102
|
+
# @return [Client::Configuration]
|
103
|
+
#
|
104
|
+
def configure
|
105
|
+
yield @config if block_given?
|
106
|
+
@config
|
107
|
+
end
|
108
|
+
|
109
|
+
##
|
110
|
+
# The effective universe domain
|
111
|
+
#
|
112
|
+
# @return [String]
|
113
|
+
#
|
114
|
+
def universe_domain
|
115
|
+
@analytics_hub_service_stub.universe_domain
|
116
|
+
end
|
117
|
+
|
118
|
+
##
|
119
|
+
# Create a new AnalyticsHubService REST client object.
|
120
|
+
#
|
121
|
+
# @example
|
122
|
+
#
|
123
|
+
# # Create a client using the default configuration
|
124
|
+
# client = ::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
125
|
+
#
|
126
|
+
# # Create a client using a custom configuration
|
127
|
+
# client = ::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new do |config|
|
128
|
+
# config.timeout = 10.0
|
129
|
+
# end
|
130
|
+
#
|
131
|
+
# @yield [config] Configure the AnalyticsHubService client.
|
132
|
+
# @yieldparam config [Client::Configuration]
|
133
|
+
#
|
134
|
+
def initialize
|
135
|
+
# Create the configuration object
|
136
|
+
@config = Configuration.new Client.configure
|
137
|
+
|
138
|
+
# Yield the configuration if needed
|
139
|
+
yield @config if block_given?
|
140
|
+
|
141
|
+
# Create credentials
|
142
|
+
credentials = @config.credentials
|
143
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
144
|
+
# but only if the default endpoint does not have a region prefix.
|
145
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
146
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
147
|
+
!@config.endpoint.split(".").first.include?("-"))
|
148
|
+
credentials ||= Credentials.default scope: @config.scope,
|
149
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
150
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
151
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
152
|
+
end
|
153
|
+
|
154
|
+
@quota_project_id = @config.quota_project
|
155
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
156
|
+
|
157
|
+
@operations_client = ::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Operations.new do |config|
|
158
|
+
config.credentials = credentials
|
159
|
+
config.quota_project = @quota_project_id
|
160
|
+
config.endpoint = @config.endpoint
|
161
|
+
config.universe_domain = @config.universe_domain
|
162
|
+
end
|
163
|
+
|
164
|
+
@analytics_hub_service_stub = ::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::ServiceStub.new(
|
165
|
+
endpoint: @config.endpoint,
|
166
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
167
|
+
universe_domain: @config.universe_domain,
|
168
|
+
credentials: credentials
|
169
|
+
)
|
170
|
+
end
|
171
|
+
|
172
|
+
##
|
173
|
+
# Get the associated client for long-running operations.
|
174
|
+
#
|
175
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Operations]
|
176
|
+
#
|
177
|
+
attr_reader :operations_client
|
178
|
+
|
179
|
+
# Service calls
|
180
|
+
|
181
|
+
##
|
182
|
+
# Lists all data exchanges in a given project and location.
|
183
|
+
#
|
184
|
+
# @overload list_data_exchanges(request, options = nil)
|
185
|
+
# Pass arguments to `list_data_exchanges` via a request object, either of type
|
186
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::ListDataExchangesRequest} or an equivalent Hash.
|
187
|
+
#
|
188
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::ListDataExchangesRequest, ::Hash]
|
189
|
+
# A request object representing the call parameters. Required. To specify no
|
190
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
191
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
192
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
193
|
+
#
|
194
|
+
# @overload list_data_exchanges(parent: nil, page_size: nil, page_token: nil)
|
195
|
+
# Pass arguments to `list_data_exchanges` via keyword arguments. Note that at
|
196
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
197
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
198
|
+
#
|
199
|
+
# @param parent [::String]
|
200
|
+
# Required. The parent resource path of the data exchanges.
|
201
|
+
# e.g. `projects/myproject/locations/US`.
|
202
|
+
# @param page_size [::Integer]
|
203
|
+
# The maximum number of results to return in a single response page. Leverage
|
204
|
+
# the page tokens to iterate through the entire collection.
|
205
|
+
# @param page_token [::String]
|
206
|
+
# Page token, returned by a previous call, to request the next page of
|
207
|
+
# results.
|
208
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
209
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange>]
|
210
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
211
|
+
#
|
212
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange>]
|
213
|
+
#
|
214
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
215
|
+
#
|
216
|
+
# @example Basic example
|
217
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
218
|
+
#
|
219
|
+
# # Create a client object. The client can be reused for multiple calls.
|
220
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
221
|
+
#
|
222
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
223
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::ListDataExchangesRequest.new
|
224
|
+
#
|
225
|
+
# # Call the list_data_exchanges method.
|
226
|
+
# result = client.list_data_exchanges request
|
227
|
+
#
|
228
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
229
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
230
|
+
# result.each do |item|
|
231
|
+
# # Each element is of type ::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange.
|
232
|
+
# p item
|
233
|
+
# end
|
234
|
+
#
|
235
|
+
def list_data_exchanges request, options = nil
|
236
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
237
|
+
|
238
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListDataExchangesRequest
|
239
|
+
|
240
|
+
# Converts hash and nil to an options object
|
241
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
242
|
+
|
243
|
+
# Customize the options with defaults
|
244
|
+
call_metadata = @config.rpcs.list_data_exchanges.metadata.to_h
|
245
|
+
|
246
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
247
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
248
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
249
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
250
|
+
transports_version_send: [:rest]
|
251
|
+
|
252
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
253
|
+
|
254
|
+
options.apply_defaults timeout: @config.rpcs.list_data_exchanges.timeout,
|
255
|
+
metadata: call_metadata,
|
256
|
+
retry_policy: @config.rpcs.list_data_exchanges.retry_policy
|
257
|
+
|
258
|
+
options.apply_defaults timeout: @config.timeout,
|
259
|
+
metadata: @config.metadata,
|
260
|
+
retry_policy: @config.retry_policy
|
261
|
+
|
262
|
+
@analytics_hub_service_stub.list_data_exchanges request, options do |result, operation|
|
263
|
+
result = ::Gapic::Rest::PagedEnumerable.new @analytics_hub_service_stub, :list_data_exchanges, "data_exchanges", request, result, options
|
264
|
+
yield result, operation if block_given?
|
265
|
+
return result
|
266
|
+
end
|
267
|
+
rescue ::Gapic::Rest::Error => e
|
268
|
+
raise ::Google::Cloud::Error.from_error(e)
|
269
|
+
end
|
270
|
+
|
271
|
+
##
|
272
|
+
# Lists all data exchanges from projects in a given organization and
|
273
|
+
# location.
|
274
|
+
#
|
275
|
+
# @overload list_org_data_exchanges(request, options = nil)
|
276
|
+
# Pass arguments to `list_org_data_exchanges` via a request object, either of type
|
277
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::ListOrgDataExchangesRequest} or an equivalent Hash.
|
278
|
+
#
|
279
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::ListOrgDataExchangesRequest, ::Hash]
|
280
|
+
# A request object representing the call parameters. Required. To specify no
|
281
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
282
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
283
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
284
|
+
#
|
285
|
+
# @overload list_org_data_exchanges(organization: nil, page_size: nil, page_token: nil)
|
286
|
+
# Pass arguments to `list_org_data_exchanges` via keyword arguments. Note that at
|
287
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
288
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
289
|
+
#
|
290
|
+
# @param organization [::String]
|
291
|
+
# Required. The organization resource path of the projects containing
|
292
|
+
# DataExchanges. e.g. `organizations/myorg/locations/US`.
|
293
|
+
# @param page_size [::Integer]
|
294
|
+
# The maximum number of results to return in a single response page. Leverage
|
295
|
+
# the page tokens to iterate through the entire collection.
|
296
|
+
# @param page_token [::String]
|
297
|
+
# Page token, returned by a previous call, to request the next page of
|
298
|
+
# results.
|
299
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
300
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange>]
|
301
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
302
|
+
#
|
303
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange>]
|
304
|
+
#
|
305
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
306
|
+
#
|
307
|
+
# @example Basic example
|
308
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
309
|
+
#
|
310
|
+
# # Create a client object. The client can be reused for multiple calls.
|
311
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
312
|
+
#
|
313
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
314
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::ListOrgDataExchangesRequest.new
|
315
|
+
#
|
316
|
+
# # Call the list_org_data_exchanges method.
|
317
|
+
# result = client.list_org_data_exchanges request
|
318
|
+
#
|
319
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
320
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
321
|
+
# result.each do |item|
|
322
|
+
# # Each element is of type ::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange.
|
323
|
+
# p item
|
324
|
+
# end
|
325
|
+
#
|
326
|
+
def list_org_data_exchanges request, options = nil
|
327
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
328
|
+
|
329
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListOrgDataExchangesRequest
|
330
|
+
|
331
|
+
# Converts hash and nil to an options object
|
332
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
333
|
+
|
334
|
+
# Customize the options with defaults
|
335
|
+
call_metadata = @config.rpcs.list_org_data_exchanges.metadata.to_h
|
336
|
+
|
337
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
338
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
339
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
340
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
341
|
+
transports_version_send: [:rest]
|
342
|
+
|
343
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
344
|
+
|
345
|
+
options.apply_defaults timeout: @config.rpcs.list_org_data_exchanges.timeout,
|
346
|
+
metadata: call_metadata,
|
347
|
+
retry_policy: @config.rpcs.list_org_data_exchanges.retry_policy
|
348
|
+
|
349
|
+
options.apply_defaults timeout: @config.timeout,
|
350
|
+
metadata: @config.metadata,
|
351
|
+
retry_policy: @config.retry_policy
|
352
|
+
|
353
|
+
@analytics_hub_service_stub.list_org_data_exchanges request, options do |result, operation|
|
354
|
+
result = ::Gapic::Rest::PagedEnumerable.new @analytics_hub_service_stub, :list_org_data_exchanges, "data_exchanges", request, result, options
|
355
|
+
yield result, operation if block_given?
|
356
|
+
return result
|
357
|
+
end
|
358
|
+
rescue ::Gapic::Rest::Error => e
|
359
|
+
raise ::Google::Cloud::Error.from_error(e)
|
360
|
+
end
|
361
|
+
|
362
|
+
##
|
363
|
+
# Gets the details of a data exchange.
|
364
|
+
#
|
365
|
+
# @overload get_data_exchange(request, options = nil)
|
366
|
+
# Pass arguments to `get_data_exchange` via a request object, either of type
|
367
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::GetDataExchangeRequest} or an equivalent Hash.
|
368
|
+
#
|
369
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::GetDataExchangeRequest, ::Hash]
|
370
|
+
# A request object representing the call parameters. Required. To specify no
|
371
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
372
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
373
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
374
|
+
#
|
375
|
+
# @overload get_data_exchange(name: nil)
|
376
|
+
# Pass arguments to `get_data_exchange` via keyword arguments. Note that at
|
377
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
378
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
379
|
+
#
|
380
|
+
# @param name [::String]
|
381
|
+
# Required. The resource name of the data exchange.
|
382
|
+
# e.g. `projects/myproject/locations/US/dataExchanges/123`.
|
383
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
384
|
+
# @yieldparam result [::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange]
|
385
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
386
|
+
#
|
387
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange]
|
388
|
+
#
|
389
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
390
|
+
#
|
391
|
+
# @example Basic example
|
392
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
393
|
+
#
|
394
|
+
# # Create a client object. The client can be reused for multiple calls.
|
395
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
396
|
+
#
|
397
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
398
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::GetDataExchangeRequest.new
|
399
|
+
#
|
400
|
+
# # Call the get_data_exchange method.
|
401
|
+
# result = client.get_data_exchange request
|
402
|
+
#
|
403
|
+
# # The returned object is of type Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange.
|
404
|
+
# p result
|
405
|
+
#
|
406
|
+
def get_data_exchange request, options = nil
|
407
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
408
|
+
|
409
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::GetDataExchangeRequest
|
410
|
+
|
411
|
+
# Converts hash and nil to an options object
|
412
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
413
|
+
|
414
|
+
# Customize the options with defaults
|
415
|
+
call_metadata = @config.rpcs.get_data_exchange.metadata.to_h
|
416
|
+
|
417
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
418
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
419
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
420
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
421
|
+
transports_version_send: [:rest]
|
422
|
+
|
423
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
424
|
+
|
425
|
+
options.apply_defaults timeout: @config.rpcs.get_data_exchange.timeout,
|
426
|
+
metadata: call_metadata,
|
427
|
+
retry_policy: @config.rpcs.get_data_exchange.retry_policy
|
428
|
+
|
429
|
+
options.apply_defaults timeout: @config.timeout,
|
430
|
+
metadata: @config.metadata,
|
431
|
+
retry_policy: @config.retry_policy
|
432
|
+
|
433
|
+
@analytics_hub_service_stub.get_data_exchange request, options do |result, operation|
|
434
|
+
yield result, operation if block_given?
|
435
|
+
return result
|
436
|
+
end
|
437
|
+
rescue ::Gapic::Rest::Error => e
|
438
|
+
raise ::Google::Cloud::Error.from_error(e)
|
439
|
+
end
|
440
|
+
|
441
|
+
##
|
442
|
+
# Creates a new data exchange.
|
443
|
+
#
|
444
|
+
# @overload create_data_exchange(request, options = nil)
|
445
|
+
# Pass arguments to `create_data_exchange` via a request object, either of type
|
446
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::CreateDataExchangeRequest} or an equivalent Hash.
|
447
|
+
#
|
448
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::CreateDataExchangeRequest, ::Hash]
|
449
|
+
# A request object representing the call parameters. Required. To specify no
|
450
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
451
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
452
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
453
|
+
#
|
454
|
+
# @overload create_data_exchange(parent: nil, data_exchange_id: nil, data_exchange: nil)
|
455
|
+
# Pass arguments to `create_data_exchange` via keyword arguments. Note that at
|
456
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
457
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
458
|
+
#
|
459
|
+
# @param parent [::String]
|
460
|
+
# Required. The parent resource path of the data exchange.
|
461
|
+
# e.g. `projects/myproject/locations/US`.
|
462
|
+
# @param data_exchange_id [::String]
|
463
|
+
# Required. The ID of the data exchange.
|
464
|
+
# Must contain only Unicode letters, numbers (0-9), underscores (_).
|
465
|
+
# Should not use characters that require URL-escaping, or characters
|
466
|
+
# outside of ASCII, spaces.
|
467
|
+
# Max length: 100 bytes.
|
468
|
+
# @param data_exchange [::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange, ::Hash]
|
469
|
+
# Required. The data exchange to create.
|
470
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
471
|
+
# @yieldparam result [::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange]
|
472
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
473
|
+
#
|
474
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange]
|
475
|
+
#
|
476
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
477
|
+
#
|
478
|
+
# @example Basic example
|
479
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
480
|
+
#
|
481
|
+
# # Create a client object. The client can be reused for multiple calls.
|
482
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
483
|
+
#
|
484
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
485
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::CreateDataExchangeRequest.new
|
486
|
+
#
|
487
|
+
# # Call the create_data_exchange method.
|
488
|
+
# result = client.create_data_exchange request
|
489
|
+
#
|
490
|
+
# # The returned object is of type Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange.
|
491
|
+
# p result
|
492
|
+
#
|
493
|
+
def create_data_exchange request, options = nil
|
494
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
495
|
+
|
496
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::CreateDataExchangeRequest
|
497
|
+
|
498
|
+
# Converts hash and nil to an options object
|
499
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
500
|
+
|
501
|
+
# Customize the options with defaults
|
502
|
+
call_metadata = @config.rpcs.create_data_exchange.metadata.to_h
|
503
|
+
|
504
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
505
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
506
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
507
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
508
|
+
transports_version_send: [:rest]
|
509
|
+
|
510
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
511
|
+
|
512
|
+
options.apply_defaults timeout: @config.rpcs.create_data_exchange.timeout,
|
513
|
+
metadata: call_metadata,
|
514
|
+
retry_policy: @config.rpcs.create_data_exchange.retry_policy
|
515
|
+
|
516
|
+
options.apply_defaults timeout: @config.timeout,
|
517
|
+
metadata: @config.metadata,
|
518
|
+
retry_policy: @config.retry_policy
|
519
|
+
|
520
|
+
@analytics_hub_service_stub.create_data_exchange request, options do |result, operation|
|
521
|
+
yield result, operation if block_given?
|
522
|
+
return result
|
523
|
+
end
|
524
|
+
rescue ::Gapic::Rest::Error => e
|
525
|
+
raise ::Google::Cloud::Error.from_error(e)
|
526
|
+
end
|
527
|
+
|
528
|
+
##
|
529
|
+
# Updates an existing data exchange.
|
530
|
+
#
|
531
|
+
# @overload update_data_exchange(request, options = nil)
|
532
|
+
# Pass arguments to `update_data_exchange` via a request object, either of type
|
533
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::UpdateDataExchangeRequest} or an equivalent Hash.
|
534
|
+
#
|
535
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::UpdateDataExchangeRequest, ::Hash]
|
536
|
+
# A request object representing the call parameters. Required. To specify no
|
537
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
538
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
539
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
540
|
+
#
|
541
|
+
# @overload update_data_exchange(update_mask: nil, data_exchange: nil)
|
542
|
+
# Pass arguments to `update_data_exchange` via keyword arguments. Note that at
|
543
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
544
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
545
|
+
#
|
546
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
547
|
+
# Required. Field mask specifies the fields to update in the data exchange
|
548
|
+
# resource. The fields specified in the
|
549
|
+
# `updateMask` are relative to the resource and are not a full request.
|
550
|
+
# @param data_exchange [::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange, ::Hash]
|
551
|
+
# Required. The data exchange to update.
|
552
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
553
|
+
# @yieldparam result [::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange]
|
554
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
555
|
+
#
|
556
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange]
|
557
|
+
#
|
558
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
559
|
+
#
|
560
|
+
# @example Basic example
|
561
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
562
|
+
#
|
563
|
+
# # Create a client object. The client can be reused for multiple calls.
|
564
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
565
|
+
#
|
566
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
567
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::UpdateDataExchangeRequest.new
|
568
|
+
#
|
569
|
+
# # Call the update_data_exchange method.
|
570
|
+
# result = client.update_data_exchange request
|
571
|
+
#
|
572
|
+
# # The returned object is of type Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange.
|
573
|
+
# p result
|
574
|
+
#
|
575
|
+
def update_data_exchange request, options = nil
|
576
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
577
|
+
|
578
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::UpdateDataExchangeRequest
|
579
|
+
|
580
|
+
# Converts hash and nil to an options object
|
581
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
582
|
+
|
583
|
+
# Customize the options with defaults
|
584
|
+
call_metadata = @config.rpcs.update_data_exchange.metadata.to_h
|
585
|
+
|
586
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
587
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
588
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
589
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
590
|
+
transports_version_send: [:rest]
|
591
|
+
|
592
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
593
|
+
|
594
|
+
options.apply_defaults timeout: @config.rpcs.update_data_exchange.timeout,
|
595
|
+
metadata: call_metadata,
|
596
|
+
retry_policy: @config.rpcs.update_data_exchange.retry_policy
|
597
|
+
|
598
|
+
options.apply_defaults timeout: @config.timeout,
|
599
|
+
metadata: @config.metadata,
|
600
|
+
retry_policy: @config.retry_policy
|
601
|
+
|
602
|
+
@analytics_hub_service_stub.update_data_exchange request, options do |result, operation|
|
603
|
+
yield result, operation if block_given?
|
604
|
+
return result
|
605
|
+
end
|
606
|
+
rescue ::Gapic::Rest::Error => e
|
607
|
+
raise ::Google::Cloud::Error.from_error(e)
|
608
|
+
end
|
609
|
+
|
610
|
+
##
|
611
|
+
# Deletes an existing data exchange.
|
612
|
+
#
|
613
|
+
# @overload delete_data_exchange(request, options = nil)
|
614
|
+
# Pass arguments to `delete_data_exchange` via a request object, either of type
|
615
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteDataExchangeRequest} or an equivalent Hash.
|
616
|
+
#
|
617
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteDataExchangeRequest, ::Hash]
|
618
|
+
# A request object representing the call parameters. Required. To specify no
|
619
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
620
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
621
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
622
|
+
#
|
623
|
+
# @overload delete_data_exchange(name: nil)
|
624
|
+
# Pass arguments to `delete_data_exchange` via keyword arguments. Note that at
|
625
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
626
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
627
|
+
#
|
628
|
+
# @param name [::String]
|
629
|
+
# Required. The full name of the data exchange resource that you want to
|
630
|
+
# delete. For example, `projects/myproject/locations/US/dataExchanges/123`.
|
631
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
632
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
633
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
634
|
+
#
|
635
|
+
# @return [::Google::Protobuf::Empty]
|
636
|
+
#
|
637
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
638
|
+
#
|
639
|
+
# @example Basic example
|
640
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
641
|
+
#
|
642
|
+
# # Create a client object. The client can be reused for multiple calls.
|
643
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
644
|
+
#
|
645
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
646
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteDataExchangeRequest.new
|
647
|
+
#
|
648
|
+
# # Call the delete_data_exchange method.
|
649
|
+
# result = client.delete_data_exchange request
|
650
|
+
#
|
651
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
652
|
+
# p result
|
653
|
+
#
|
654
|
+
def delete_data_exchange request, options = nil
|
655
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
656
|
+
|
657
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteDataExchangeRequest
|
658
|
+
|
659
|
+
# Converts hash and nil to an options object
|
660
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
661
|
+
|
662
|
+
# Customize the options with defaults
|
663
|
+
call_metadata = @config.rpcs.delete_data_exchange.metadata.to_h
|
664
|
+
|
665
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
666
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
667
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
668
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
669
|
+
transports_version_send: [:rest]
|
670
|
+
|
671
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
672
|
+
|
673
|
+
options.apply_defaults timeout: @config.rpcs.delete_data_exchange.timeout,
|
674
|
+
metadata: call_metadata,
|
675
|
+
retry_policy: @config.rpcs.delete_data_exchange.retry_policy
|
676
|
+
|
677
|
+
options.apply_defaults timeout: @config.timeout,
|
678
|
+
metadata: @config.metadata,
|
679
|
+
retry_policy: @config.retry_policy
|
680
|
+
|
681
|
+
@analytics_hub_service_stub.delete_data_exchange request, options do |result, operation|
|
682
|
+
yield result, operation if block_given?
|
683
|
+
return result
|
684
|
+
end
|
685
|
+
rescue ::Gapic::Rest::Error => e
|
686
|
+
raise ::Google::Cloud::Error.from_error(e)
|
687
|
+
end
|
688
|
+
|
689
|
+
##
|
690
|
+
# Lists all listings in a given project and location.
|
691
|
+
#
|
692
|
+
# @overload list_listings(request, options = nil)
|
693
|
+
# Pass arguments to `list_listings` via a request object, either of type
|
694
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::ListListingsRequest} or an equivalent Hash.
|
695
|
+
#
|
696
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::ListListingsRequest, ::Hash]
|
697
|
+
# A request object representing the call parameters. Required. To specify no
|
698
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
699
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
700
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
701
|
+
#
|
702
|
+
# @overload list_listings(parent: nil, page_size: nil, page_token: nil)
|
703
|
+
# Pass arguments to `list_listings` via keyword arguments. Note that at
|
704
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
705
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
706
|
+
#
|
707
|
+
# @param parent [::String]
|
708
|
+
# Required. The parent resource path of the listing.
|
709
|
+
# e.g. `projects/myproject/locations/US/dataExchanges/123`.
|
710
|
+
# @param page_size [::Integer]
|
711
|
+
# The maximum number of results to return in a single response page. Leverage
|
712
|
+
# the page tokens to iterate through the entire collection.
|
713
|
+
# @param page_token [::String]
|
714
|
+
# Page token, returned by a previous call, to request the next page of
|
715
|
+
# results.
|
716
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
717
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing>]
|
718
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
719
|
+
#
|
720
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing>]
|
721
|
+
#
|
722
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
723
|
+
#
|
724
|
+
# @example Basic example
|
725
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
726
|
+
#
|
727
|
+
# # Create a client object. The client can be reused for multiple calls.
|
728
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
729
|
+
#
|
730
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
731
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::ListListingsRequest.new
|
732
|
+
#
|
733
|
+
# # Call the list_listings method.
|
734
|
+
# result = client.list_listings request
|
735
|
+
#
|
736
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
737
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
738
|
+
# result.each do |item|
|
739
|
+
# # Each element is of type ::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing.
|
740
|
+
# p item
|
741
|
+
# end
|
742
|
+
#
|
743
|
+
def list_listings request, options = nil
|
744
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
745
|
+
|
746
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListListingsRequest
|
747
|
+
|
748
|
+
# Converts hash and nil to an options object
|
749
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
750
|
+
|
751
|
+
# Customize the options with defaults
|
752
|
+
call_metadata = @config.rpcs.list_listings.metadata.to_h
|
753
|
+
|
754
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
755
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
756
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
757
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
758
|
+
transports_version_send: [:rest]
|
759
|
+
|
760
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
761
|
+
|
762
|
+
options.apply_defaults timeout: @config.rpcs.list_listings.timeout,
|
763
|
+
metadata: call_metadata,
|
764
|
+
retry_policy: @config.rpcs.list_listings.retry_policy
|
765
|
+
|
766
|
+
options.apply_defaults timeout: @config.timeout,
|
767
|
+
metadata: @config.metadata,
|
768
|
+
retry_policy: @config.retry_policy
|
769
|
+
|
770
|
+
@analytics_hub_service_stub.list_listings request, options do |result, operation|
|
771
|
+
result = ::Gapic::Rest::PagedEnumerable.new @analytics_hub_service_stub, :list_listings, "listings", request, result, options
|
772
|
+
yield result, operation if block_given?
|
773
|
+
return result
|
774
|
+
end
|
775
|
+
rescue ::Gapic::Rest::Error => e
|
776
|
+
raise ::Google::Cloud::Error.from_error(e)
|
777
|
+
end
|
778
|
+
|
779
|
+
##
|
780
|
+
# Gets the details of a listing.
|
781
|
+
#
|
782
|
+
# @overload get_listing(request, options = nil)
|
783
|
+
# Pass arguments to `get_listing` via a request object, either of type
|
784
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::GetListingRequest} or an equivalent Hash.
|
785
|
+
#
|
786
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::GetListingRequest, ::Hash]
|
787
|
+
# A request object representing the call parameters. Required. To specify no
|
788
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
789
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
790
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
791
|
+
#
|
792
|
+
# @overload get_listing(name: nil)
|
793
|
+
# Pass arguments to `get_listing` via keyword arguments. Note that at
|
794
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
795
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
796
|
+
#
|
797
|
+
# @param name [::String]
|
798
|
+
# Required. The resource name of the listing.
|
799
|
+
# e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
|
800
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
801
|
+
# @yieldparam result [::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing]
|
802
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
803
|
+
#
|
804
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing]
|
805
|
+
#
|
806
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
807
|
+
#
|
808
|
+
# @example Basic example
|
809
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
810
|
+
#
|
811
|
+
# # Create a client object. The client can be reused for multiple calls.
|
812
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
813
|
+
#
|
814
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
815
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::GetListingRequest.new
|
816
|
+
#
|
817
|
+
# # Call the get_listing method.
|
818
|
+
# result = client.get_listing request
|
819
|
+
#
|
820
|
+
# # The returned object is of type Google::Cloud::Bigquery::AnalyticsHub::V1::Listing.
|
821
|
+
# p result
|
822
|
+
#
|
823
|
+
def get_listing request, options = nil
|
824
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
825
|
+
|
826
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::GetListingRequest
|
827
|
+
|
828
|
+
# Converts hash and nil to an options object
|
829
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
830
|
+
|
831
|
+
# Customize the options with defaults
|
832
|
+
call_metadata = @config.rpcs.get_listing.metadata.to_h
|
833
|
+
|
834
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
835
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
836
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
837
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
838
|
+
transports_version_send: [:rest]
|
839
|
+
|
840
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
841
|
+
|
842
|
+
options.apply_defaults timeout: @config.rpcs.get_listing.timeout,
|
843
|
+
metadata: call_metadata,
|
844
|
+
retry_policy: @config.rpcs.get_listing.retry_policy
|
845
|
+
|
846
|
+
options.apply_defaults timeout: @config.timeout,
|
847
|
+
metadata: @config.metadata,
|
848
|
+
retry_policy: @config.retry_policy
|
849
|
+
|
850
|
+
@analytics_hub_service_stub.get_listing request, options do |result, operation|
|
851
|
+
yield result, operation if block_given?
|
852
|
+
return result
|
853
|
+
end
|
854
|
+
rescue ::Gapic::Rest::Error => e
|
855
|
+
raise ::Google::Cloud::Error.from_error(e)
|
856
|
+
end
|
857
|
+
|
858
|
+
##
|
859
|
+
# Creates a new listing.
|
860
|
+
#
|
861
|
+
# @overload create_listing(request, options = nil)
|
862
|
+
# Pass arguments to `create_listing` via a request object, either of type
|
863
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::CreateListingRequest} or an equivalent Hash.
|
864
|
+
#
|
865
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::CreateListingRequest, ::Hash]
|
866
|
+
# A request object representing the call parameters. Required. To specify no
|
867
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
868
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
869
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
870
|
+
#
|
871
|
+
# @overload create_listing(parent: nil, listing_id: nil, listing: nil)
|
872
|
+
# Pass arguments to `create_listing` via keyword arguments. Note that at
|
873
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
874
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
875
|
+
#
|
876
|
+
# @param parent [::String]
|
877
|
+
# Required. The parent resource path of the listing.
|
878
|
+
# e.g. `projects/myproject/locations/US/dataExchanges/123`.
|
879
|
+
# @param listing_id [::String]
|
880
|
+
# Required. The ID of the listing to create.
|
881
|
+
# Must contain only Unicode letters, numbers (0-9), underscores (_).
|
882
|
+
# Should not use characters that require URL-escaping, or characters
|
883
|
+
# outside of ASCII, spaces.
|
884
|
+
# Max length: 100 bytes.
|
885
|
+
# @param listing [::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing, ::Hash]
|
886
|
+
# Required. The listing to create.
|
887
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
888
|
+
# @yieldparam result [::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing]
|
889
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
890
|
+
#
|
891
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing]
|
892
|
+
#
|
893
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
894
|
+
#
|
895
|
+
# @example Basic example
|
896
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
897
|
+
#
|
898
|
+
# # Create a client object. The client can be reused for multiple calls.
|
899
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
900
|
+
#
|
901
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
902
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::CreateListingRequest.new
|
903
|
+
#
|
904
|
+
# # Call the create_listing method.
|
905
|
+
# result = client.create_listing request
|
906
|
+
#
|
907
|
+
# # The returned object is of type Google::Cloud::Bigquery::AnalyticsHub::V1::Listing.
|
908
|
+
# p result
|
909
|
+
#
|
910
|
+
def create_listing request, options = nil
|
911
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
912
|
+
|
913
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::CreateListingRequest
|
914
|
+
|
915
|
+
# Converts hash and nil to an options object
|
916
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
917
|
+
|
918
|
+
# Customize the options with defaults
|
919
|
+
call_metadata = @config.rpcs.create_listing.metadata.to_h
|
920
|
+
|
921
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
922
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
923
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
924
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
925
|
+
transports_version_send: [:rest]
|
926
|
+
|
927
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
928
|
+
|
929
|
+
options.apply_defaults timeout: @config.rpcs.create_listing.timeout,
|
930
|
+
metadata: call_metadata,
|
931
|
+
retry_policy: @config.rpcs.create_listing.retry_policy
|
932
|
+
|
933
|
+
options.apply_defaults timeout: @config.timeout,
|
934
|
+
metadata: @config.metadata,
|
935
|
+
retry_policy: @config.retry_policy
|
936
|
+
|
937
|
+
@analytics_hub_service_stub.create_listing request, options do |result, operation|
|
938
|
+
yield result, operation if block_given?
|
939
|
+
return result
|
940
|
+
end
|
941
|
+
rescue ::Gapic::Rest::Error => e
|
942
|
+
raise ::Google::Cloud::Error.from_error(e)
|
943
|
+
end
|
944
|
+
|
945
|
+
##
|
946
|
+
# Updates an existing listing.
|
947
|
+
#
|
948
|
+
# @overload update_listing(request, options = nil)
|
949
|
+
# Pass arguments to `update_listing` via a request object, either of type
|
950
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::UpdateListingRequest} or an equivalent Hash.
|
951
|
+
#
|
952
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::UpdateListingRequest, ::Hash]
|
953
|
+
# A request object representing the call parameters. Required. To specify no
|
954
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
955
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
956
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
957
|
+
#
|
958
|
+
# @overload update_listing(update_mask: nil, listing: nil)
|
959
|
+
# Pass arguments to `update_listing` via keyword arguments. Note that at
|
960
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
961
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
962
|
+
#
|
963
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
964
|
+
# Required. Field mask specifies the fields to update in the listing
|
965
|
+
# resource. The fields specified in the `updateMask` are relative to the
|
966
|
+
# resource and are not a full request.
|
967
|
+
# @param listing [::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing, ::Hash]
|
968
|
+
# Required. The listing to update.
|
969
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
970
|
+
# @yieldparam result [::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing]
|
971
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
972
|
+
#
|
973
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing]
|
974
|
+
#
|
975
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
976
|
+
#
|
977
|
+
# @example Basic example
|
978
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
979
|
+
#
|
980
|
+
# # Create a client object. The client can be reused for multiple calls.
|
981
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
982
|
+
#
|
983
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
984
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::UpdateListingRequest.new
|
985
|
+
#
|
986
|
+
# # Call the update_listing method.
|
987
|
+
# result = client.update_listing request
|
988
|
+
#
|
989
|
+
# # The returned object is of type Google::Cloud::Bigquery::AnalyticsHub::V1::Listing.
|
990
|
+
# p result
|
991
|
+
#
|
992
|
+
def update_listing request, options = nil
|
993
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
994
|
+
|
995
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::UpdateListingRequest
|
996
|
+
|
997
|
+
# Converts hash and nil to an options object
|
998
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
999
|
+
|
1000
|
+
# Customize the options with defaults
|
1001
|
+
call_metadata = @config.rpcs.update_listing.metadata.to_h
|
1002
|
+
|
1003
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1004
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1005
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1006
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
1007
|
+
transports_version_send: [:rest]
|
1008
|
+
|
1009
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1010
|
+
|
1011
|
+
options.apply_defaults timeout: @config.rpcs.update_listing.timeout,
|
1012
|
+
metadata: call_metadata,
|
1013
|
+
retry_policy: @config.rpcs.update_listing.retry_policy
|
1014
|
+
|
1015
|
+
options.apply_defaults timeout: @config.timeout,
|
1016
|
+
metadata: @config.metadata,
|
1017
|
+
retry_policy: @config.retry_policy
|
1018
|
+
|
1019
|
+
@analytics_hub_service_stub.update_listing request, options do |result, operation|
|
1020
|
+
yield result, operation if block_given?
|
1021
|
+
return result
|
1022
|
+
end
|
1023
|
+
rescue ::Gapic::Rest::Error => e
|
1024
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
##
|
1028
|
+
# Deletes a listing.
|
1029
|
+
#
|
1030
|
+
# @overload delete_listing(request, options = nil)
|
1031
|
+
# Pass arguments to `delete_listing` via a request object, either of type
|
1032
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteListingRequest} or an equivalent Hash.
|
1033
|
+
#
|
1034
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteListingRequest, ::Hash]
|
1035
|
+
# A request object representing the call parameters. Required. To specify no
|
1036
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1037
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1038
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1039
|
+
#
|
1040
|
+
# @overload delete_listing(name: nil)
|
1041
|
+
# Pass arguments to `delete_listing` via keyword arguments. Note that at
|
1042
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1043
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1044
|
+
#
|
1045
|
+
# @param name [::String]
|
1046
|
+
# Required. Resource name of the listing to delete.
|
1047
|
+
# e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
|
1048
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1049
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
1050
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1051
|
+
#
|
1052
|
+
# @return [::Google::Protobuf::Empty]
|
1053
|
+
#
|
1054
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1055
|
+
#
|
1056
|
+
# @example Basic example
|
1057
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
1058
|
+
#
|
1059
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1060
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
1061
|
+
#
|
1062
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1063
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteListingRequest.new
|
1064
|
+
#
|
1065
|
+
# # Call the delete_listing method.
|
1066
|
+
# result = client.delete_listing request
|
1067
|
+
#
|
1068
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1069
|
+
# p result
|
1070
|
+
#
|
1071
|
+
def delete_listing request, options = nil
|
1072
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1073
|
+
|
1074
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteListingRequest
|
1075
|
+
|
1076
|
+
# Converts hash and nil to an options object
|
1077
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1078
|
+
|
1079
|
+
# Customize the options with defaults
|
1080
|
+
call_metadata = @config.rpcs.delete_listing.metadata.to_h
|
1081
|
+
|
1082
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1083
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1084
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1085
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
1086
|
+
transports_version_send: [:rest]
|
1087
|
+
|
1088
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1089
|
+
|
1090
|
+
options.apply_defaults timeout: @config.rpcs.delete_listing.timeout,
|
1091
|
+
metadata: call_metadata,
|
1092
|
+
retry_policy: @config.rpcs.delete_listing.retry_policy
|
1093
|
+
|
1094
|
+
options.apply_defaults timeout: @config.timeout,
|
1095
|
+
metadata: @config.metadata,
|
1096
|
+
retry_policy: @config.retry_policy
|
1097
|
+
|
1098
|
+
@analytics_hub_service_stub.delete_listing request, options do |result, operation|
|
1099
|
+
yield result, operation if block_given?
|
1100
|
+
return result
|
1101
|
+
end
|
1102
|
+
rescue ::Gapic::Rest::Error => e
|
1103
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
##
|
1107
|
+
# Subscribes to a listing.
|
1108
|
+
#
|
1109
|
+
# Currently, with Analytics Hub, you can create listings that
|
1110
|
+
# reference only BigQuery datasets.
|
1111
|
+
# Upon subscription to a listing for a BigQuery dataset, Analytics Hub
|
1112
|
+
# creates a linked dataset in the subscriber's project.
|
1113
|
+
#
|
1114
|
+
# @overload subscribe_listing(request, options = nil)
|
1115
|
+
# Pass arguments to `subscribe_listing` via a request object, either of type
|
1116
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeListingRequest} or an equivalent Hash.
|
1117
|
+
#
|
1118
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeListingRequest, ::Hash]
|
1119
|
+
# A request object representing the call parameters. Required. To specify no
|
1120
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1121
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1123
|
+
#
|
1124
|
+
# @overload subscribe_listing(destination_dataset: nil, name: nil)
|
1125
|
+
# Pass arguments to `subscribe_listing` via keyword arguments. Note that at
|
1126
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1127
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1128
|
+
#
|
1129
|
+
# @param destination_dataset [::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationDataset, ::Hash]
|
1130
|
+
# BigQuery destination dataset to create for the subscriber.
|
1131
|
+
# @param name [::String]
|
1132
|
+
# Required. Resource name of the listing that you want to subscribe to.
|
1133
|
+
# e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
|
1134
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1135
|
+
# @yieldparam result [::Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeListingResponse]
|
1136
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1137
|
+
#
|
1138
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeListingResponse]
|
1139
|
+
#
|
1140
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1141
|
+
#
|
1142
|
+
# @example Basic example
|
1143
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
1144
|
+
#
|
1145
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1146
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
1147
|
+
#
|
1148
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1149
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeListingRequest.new
|
1150
|
+
#
|
1151
|
+
# # Call the subscribe_listing method.
|
1152
|
+
# result = client.subscribe_listing request
|
1153
|
+
#
|
1154
|
+
# # The returned object is of type Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeListingResponse.
|
1155
|
+
# p result
|
1156
|
+
#
|
1157
|
+
def subscribe_listing request, options = nil
|
1158
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1159
|
+
|
1160
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeListingRequest
|
1161
|
+
|
1162
|
+
# Converts hash and nil to an options object
|
1163
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1164
|
+
|
1165
|
+
# Customize the options with defaults
|
1166
|
+
call_metadata = @config.rpcs.subscribe_listing.metadata.to_h
|
1167
|
+
|
1168
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1169
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1170
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1171
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
1172
|
+
transports_version_send: [:rest]
|
1173
|
+
|
1174
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1175
|
+
|
1176
|
+
options.apply_defaults timeout: @config.rpcs.subscribe_listing.timeout,
|
1177
|
+
metadata: call_metadata,
|
1178
|
+
retry_policy: @config.rpcs.subscribe_listing.retry_policy
|
1179
|
+
|
1180
|
+
options.apply_defaults timeout: @config.timeout,
|
1181
|
+
metadata: @config.metadata,
|
1182
|
+
retry_policy: @config.retry_policy
|
1183
|
+
|
1184
|
+
@analytics_hub_service_stub.subscribe_listing request, options do |result, operation|
|
1185
|
+
yield result, operation if block_given?
|
1186
|
+
return result
|
1187
|
+
end
|
1188
|
+
rescue ::Gapic::Rest::Error => e
|
1189
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
##
|
1193
|
+
# Creates a Subscription to a Data Exchange. This is a long-running operation
|
1194
|
+
# as it will create one or more linked datasets.
|
1195
|
+
#
|
1196
|
+
# @overload subscribe_data_exchange(request, options = nil)
|
1197
|
+
# Pass arguments to `subscribe_data_exchange` via a request object, either of type
|
1198
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeDataExchangeRequest} or an equivalent Hash.
|
1199
|
+
#
|
1200
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeDataExchangeRequest, ::Hash]
|
1201
|
+
# A request object representing the call parameters. Required. To specify no
|
1202
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1203
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1204
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1205
|
+
#
|
1206
|
+
# @overload subscribe_data_exchange(name: nil, destination: nil, subscription: nil, subscriber_contact: nil)
|
1207
|
+
# Pass arguments to `subscribe_data_exchange` via keyword arguments. Note that at
|
1208
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1209
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1210
|
+
#
|
1211
|
+
# @param name [::String]
|
1212
|
+
# Required. Resource name of the Data Exchange.
|
1213
|
+
# e.g. `projects/publisherproject/locations/US/dataExchanges/123`
|
1214
|
+
# @param destination [::String]
|
1215
|
+
# Required. The parent resource path of the Subscription.
|
1216
|
+
# e.g. `projects/subscriberproject/locations/US`
|
1217
|
+
# @param subscription [::String]
|
1218
|
+
# Required. Name of the subscription to create.
|
1219
|
+
# e.g. `subscription1`
|
1220
|
+
# @param subscriber_contact [::String]
|
1221
|
+
# Email of the subscriber.
|
1222
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1223
|
+
# @yieldparam result [::Gapic::Operation]
|
1224
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1225
|
+
#
|
1226
|
+
# @return [::Gapic::Operation]
|
1227
|
+
#
|
1228
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1229
|
+
#
|
1230
|
+
# @example Basic example
|
1231
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
1232
|
+
#
|
1233
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1234
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
1235
|
+
#
|
1236
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1237
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeDataExchangeRequest.new
|
1238
|
+
#
|
1239
|
+
# # Call the subscribe_data_exchange method.
|
1240
|
+
# result = client.subscribe_data_exchange request
|
1241
|
+
#
|
1242
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1243
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1244
|
+
# # Here is how to wait for a response.
|
1245
|
+
# result.wait_until_done! timeout: 60
|
1246
|
+
# if result.response?
|
1247
|
+
# p result.response
|
1248
|
+
# else
|
1249
|
+
# puts "No response received."
|
1250
|
+
# end
|
1251
|
+
#
|
1252
|
+
def subscribe_data_exchange request, options = nil
|
1253
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1254
|
+
|
1255
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeDataExchangeRequest
|
1256
|
+
|
1257
|
+
# Converts hash and nil to an options object
|
1258
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1259
|
+
|
1260
|
+
# Customize the options with defaults
|
1261
|
+
call_metadata = @config.rpcs.subscribe_data_exchange.metadata.to_h
|
1262
|
+
|
1263
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1264
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1265
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1266
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
1267
|
+
transports_version_send: [:rest]
|
1268
|
+
|
1269
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1270
|
+
|
1271
|
+
options.apply_defaults timeout: @config.rpcs.subscribe_data_exchange.timeout,
|
1272
|
+
metadata: call_metadata,
|
1273
|
+
retry_policy: @config.rpcs.subscribe_data_exchange.retry_policy
|
1274
|
+
|
1275
|
+
options.apply_defaults timeout: @config.timeout,
|
1276
|
+
metadata: @config.metadata,
|
1277
|
+
retry_policy: @config.retry_policy
|
1278
|
+
|
1279
|
+
@analytics_hub_service_stub.subscribe_data_exchange request, options do |result, operation|
|
1280
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1281
|
+
yield result, operation if block_given?
|
1282
|
+
return result
|
1283
|
+
end
|
1284
|
+
rescue ::Gapic::Rest::Error => e
|
1285
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1286
|
+
end
|
1287
|
+
|
1288
|
+
##
|
1289
|
+
# Refreshes a Subscription to a Data Exchange. A Data Exchange can become
|
1290
|
+
# stale when a publisher adds or removes data. This is a long-running
|
1291
|
+
# operation as it may create many linked datasets.
|
1292
|
+
#
|
1293
|
+
# @overload refresh_subscription(request, options = nil)
|
1294
|
+
# Pass arguments to `refresh_subscription` via a request object, either of type
|
1295
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::RefreshSubscriptionRequest} or an equivalent Hash.
|
1296
|
+
#
|
1297
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::RefreshSubscriptionRequest, ::Hash]
|
1298
|
+
# A request object representing the call parameters. Required. To specify no
|
1299
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1300
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1301
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1302
|
+
#
|
1303
|
+
# @overload refresh_subscription(name: nil)
|
1304
|
+
# Pass arguments to `refresh_subscription` via keyword arguments. Note that at
|
1305
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1306
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1307
|
+
#
|
1308
|
+
# @param name [::String]
|
1309
|
+
# Required. Resource name of the Subscription to refresh.
|
1310
|
+
# e.g. `projects/subscriberproject/locations/US/subscriptions/123`
|
1311
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1312
|
+
# @yieldparam result [::Gapic::Operation]
|
1313
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1314
|
+
#
|
1315
|
+
# @return [::Gapic::Operation]
|
1316
|
+
#
|
1317
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1318
|
+
#
|
1319
|
+
# @example Basic example
|
1320
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
1321
|
+
#
|
1322
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1323
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
1324
|
+
#
|
1325
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1326
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::RefreshSubscriptionRequest.new
|
1327
|
+
#
|
1328
|
+
# # Call the refresh_subscription method.
|
1329
|
+
# result = client.refresh_subscription request
|
1330
|
+
#
|
1331
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1332
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1333
|
+
# # Here is how to wait for a response.
|
1334
|
+
# result.wait_until_done! timeout: 60
|
1335
|
+
# if result.response?
|
1336
|
+
# p result.response
|
1337
|
+
# else
|
1338
|
+
# puts "No response received."
|
1339
|
+
# end
|
1340
|
+
#
|
1341
|
+
def refresh_subscription request, options = nil
|
1342
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1343
|
+
|
1344
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::RefreshSubscriptionRequest
|
1345
|
+
|
1346
|
+
# Converts hash and nil to an options object
|
1347
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1348
|
+
|
1349
|
+
# Customize the options with defaults
|
1350
|
+
call_metadata = @config.rpcs.refresh_subscription.metadata.to_h
|
1351
|
+
|
1352
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1353
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1354
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1355
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
1356
|
+
transports_version_send: [:rest]
|
1357
|
+
|
1358
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1359
|
+
|
1360
|
+
options.apply_defaults timeout: @config.rpcs.refresh_subscription.timeout,
|
1361
|
+
metadata: call_metadata,
|
1362
|
+
retry_policy: @config.rpcs.refresh_subscription.retry_policy
|
1363
|
+
|
1364
|
+
options.apply_defaults timeout: @config.timeout,
|
1365
|
+
metadata: @config.metadata,
|
1366
|
+
retry_policy: @config.retry_policy
|
1367
|
+
|
1368
|
+
@analytics_hub_service_stub.refresh_subscription request, options do |result, operation|
|
1369
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1370
|
+
yield result, operation if block_given?
|
1371
|
+
return result
|
1372
|
+
end
|
1373
|
+
rescue ::Gapic::Rest::Error => e
|
1374
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1375
|
+
end
|
1376
|
+
|
1377
|
+
##
|
1378
|
+
# Gets the details of a Subscription.
|
1379
|
+
#
|
1380
|
+
# @overload get_subscription(request, options = nil)
|
1381
|
+
# Pass arguments to `get_subscription` via a request object, either of type
|
1382
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::GetSubscriptionRequest} or an equivalent Hash.
|
1383
|
+
#
|
1384
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::GetSubscriptionRequest, ::Hash]
|
1385
|
+
# A request object representing the call parameters. Required. To specify no
|
1386
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1387
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1388
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1389
|
+
#
|
1390
|
+
# @overload get_subscription(name: nil)
|
1391
|
+
# Pass arguments to `get_subscription` via keyword arguments. Note that at
|
1392
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1393
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1394
|
+
#
|
1395
|
+
# @param name [::String]
|
1396
|
+
# Required. Resource name of the subscription.
|
1397
|
+
# e.g. projects/123/locations/US/subscriptions/456
|
1398
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1399
|
+
# @yieldparam result [::Google::Cloud::Bigquery::AnalyticsHub::V1::Subscription]
|
1400
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1401
|
+
#
|
1402
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::Subscription]
|
1403
|
+
#
|
1404
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1405
|
+
#
|
1406
|
+
# @example Basic example
|
1407
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
1408
|
+
#
|
1409
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1410
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
1411
|
+
#
|
1412
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1413
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::GetSubscriptionRequest.new
|
1414
|
+
#
|
1415
|
+
# # Call the get_subscription method.
|
1416
|
+
# result = client.get_subscription request
|
1417
|
+
#
|
1418
|
+
# # The returned object is of type Google::Cloud::Bigquery::AnalyticsHub::V1::Subscription.
|
1419
|
+
# p result
|
1420
|
+
#
|
1421
|
+
def get_subscription request, options = nil
|
1422
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1423
|
+
|
1424
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::GetSubscriptionRequest
|
1425
|
+
|
1426
|
+
# Converts hash and nil to an options object
|
1427
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1428
|
+
|
1429
|
+
# Customize the options with defaults
|
1430
|
+
call_metadata = @config.rpcs.get_subscription.metadata.to_h
|
1431
|
+
|
1432
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1433
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1434
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1435
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
1436
|
+
transports_version_send: [:rest]
|
1437
|
+
|
1438
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1439
|
+
|
1440
|
+
options.apply_defaults timeout: @config.rpcs.get_subscription.timeout,
|
1441
|
+
metadata: call_metadata,
|
1442
|
+
retry_policy: @config.rpcs.get_subscription.retry_policy
|
1443
|
+
|
1444
|
+
options.apply_defaults timeout: @config.timeout,
|
1445
|
+
metadata: @config.metadata,
|
1446
|
+
retry_policy: @config.retry_policy
|
1447
|
+
|
1448
|
+
@analytics_hub_service_stub.get_subscription request, options do |result, operation|
|
1449
|
+
yield result, operation if block_given?
|
1450
|
+
return result
|
1451
|
+
end
|
1452
|
+
rescue ::Gapic::Rest::Error => e
|
1453
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
##
|
1457
|
+
# Lists all subscriptions in a given project and location.
|
1458
|
+
#
|
1459
|
+
# @overload list_subscriptions(request, options = nil)
|
1460
|
+
# Pass arguments to `list_subscriptions` via a request object, either of type
|
1461
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::ListSubscriptionsRequest} or an equivalent Hash.
|
1462
|
+
#
|
1463
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::ListSubscriptionsRequest, ::Hash]
|
1464
|
+
# A request object representing the call parameters. Required. To specify no
|
1465
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1466
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1467
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1468
|
+
#
|
1469
|
+
# @overload list_subscriptions(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
1470
|
+
# Pass arguments to `list_subscriptions` via keyword arguments. Note that at
|
1471
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1472
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1473
|
+
#
|
1474
|
+
# @param parent [::String]
|
1475
|
+
# Required. The parent resource path of the subscription.
|
1476
|
+
# e.g. projects/myproject/locations/US
|
1477
|
+
# @param filter [::String]
|
1478
|
+
# The filter expression may be used to filter by Data Exchange or Listing.
|
1479
|
+
# @param page_size [::Integer]
|
1480
|
+
# The maximum number of results to return in a single response page.
|
1481
|
+
# @param page_token [::String]
|
1482
|
+
# Page token, returned by a previous call.
|
1483
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1484
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::AnalyticsHub::V1::Subscription>]
|
1485
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1486
|
+
#
|
1487
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::AnalyticsHub::V1::Subscription>]
|
1488
|
+
#
|
1489
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1490
|
+
#
|
1491
|
+
# @example Basic example
|
1492
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
1493
|
+
#
|
1494
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1495
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
1496
|
+
#
|
1497
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1498
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::ListSubscriptionsRequest.new
|
1499
|
+
#
|
1500
|
+
# # Call the list_subscriptions method.
|
1501
|
+
# result = client.list_subscriptions request
|
1502
|
+
#
|
1503
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1504
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1505
|
+
# result.each do |item|
|
1506
|
+
# # Each element is of type ::Google::Cloud::Bigquery::AnalyticsHub::V1::Subscription.
|
1507
|
+
# p item
|
1508
|
+
# end
|
1509
|
+
#
|
1510
|
+
def list_subscriptions request, options = nil
|
1511
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1512
|
+
|
1513
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListSubscriptionsRequest
|
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
|
+
call_metadata = @config.rpcs.list_subscriptions.metadata.to_h
|
1520
|
+
|
1521
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1522
|
+
call_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::Bigquery::AnalyticsHub::V1::VERSION,
|
1525
|
+
transports_version_send: [:rest]
|
1526
|
+
|
1527
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1528
|
+
|
1529
|
+
options.apply_defaults timeout: @config.rpcs.list_subscriptions.timeout,
|
1530
|
+
metadata: call_metadata,
|
1531
|
+
retry_policy: @config.rpcs.list_subscriptions.retry_policy
|
1532
|
+
|
1533
|
+
options.apply_defaults timeout: @config.timeout,
|
1534
|
+
metadata: @config.metadata,
|
1535
|
+
retry_policy: @config.retry_policy
|
1536
|
+
|
1537
|
+
@analytics_hub_service_stub.list_subscriptions request, options do |result, operation|
|
1538
|
+
result = ::Gapic::Rest::PagedEnumerable.new @analytics_hub_service_stub, :list_subscriptions, "subscriptions", request, result, options
|
1539
|
+
yield result, operation if block_given?
|
1540
|
+
return result
|
1541
|
+
end
|
1542
|
+
rescue ::Gapic::Rest::Error => e
|
1543
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1544
|
+
end
|
1545
|
+
|
1546
|
+
##
|
1547
|
+
# Lists all subscriptions on a given Data Exchange or Listing.
|
1548
|
+
#
|
1549
|
+
# @overload list_shared_resource_subscriptions(request, options = nil)
|
1550
|
+
# Pass arguments to `list_shared_resource_subscriptions` via a request object, either of type
|
1551
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::ListSharedResourceSubscriptionsRequest} or an equivalent Hash.
|
1552
|
+
#
|
1553
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::ListSharedResourceSubscriptionsRequest, ::Hash]
|
1554
|
+
# A request object representing the call parameters. Required. To specify no
|
1555
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1556
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1557
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1558
|
+
#
|
1559
|
+
# @overload list_shared_resource_subscriptions(resource: nil, include_deleted_subscriptions: nil, page_size: nil, page_token: nil)
|
1560
|
+
# Pass arguments to `list_shared_resource_subscriptions` via keyword arguments. Note that at
|
1561
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1562
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1563
|
+
#
|
1564
|
+
# @param resource [::String]
|
1565
|
+
# Required. Resource name of the requested target. This resource may be
|
1566
|
+
# either a Listing or a DataExchange. e.g.
|
1567
|
+
# projects/123/locations/US/dataExchanges/456 OR e.g.
|
1568
|
+
# projects/123/locations/US/dataExchanges/456/listings/789
|
1569
|
+
# @param include_deleted_subscriptions [::Boolean]
|
1570
|
+
# If selected, includes deleted subscriptions in the response
|
1571
|
+
# (up to 63 days after deletion).
|
1572
|
+
# @param page_size [::Integer]
|
1573
|
+
# The maximum number of results to return in a single response page.
|
1574
|
+
# @param page_token [::String]
|
1575
|
+
# Page token, returned by a previous call.
|
1576
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1577
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::AnalyticsHub::V1::Subscription>]
|
1578
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1579
|
+
#
|
1580
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::AnalyticsHub::V1::Subscription>]
|
1581
|
+
#
|
1582
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1583
|
+
#
|
1584
|
+
# @example Basic example
|
1585
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
1586
|
+
#
|
1587
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1588
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
1589
|
+
#
|
1590
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1591
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::ListSharedResourceSubscriptionsRequest.new
|
1592
|
+
#
|
1593
|
+
# # Call the list_shared_resource_subscriptions method.
|
1594
|
+
# result = client.list_shared_resource_subscriptions request
|
1595
|
+
#
|
1596
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1597
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1598
|
+
# result.each do |item|
|
1599
|
+
# # Each element is of type ::Google::Cloud::Bigquery::AnalyticsHub::V1::Subscription.
|
1600
|
+
# p item
|
1601
|
+
# end
|
1602
|
+
#
|
1603
|
+
def list_shared_resource_subscriptions request, options = nil
|
1604
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1605
|
+
|
1606
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListSharedResourceSubscriptionsRequest
|
1607
|
+
|
1608
|
+
# Converts hash and nil to an options object
|
1609
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1610
|
+
|
1611
|
+
# Customize the options with defaults
|
1612
|
+
call_metadata = @config.rpcs.list_shared_resource_subscriptions.metadata.to_h
|
1613
|
+
|
1614
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1615
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1616
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1617
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
1618
|
+
transports_version_send: [:rest]
|
1619
|
+
|
1620
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1621
|
+
|
1622
|
+
options.apply_defaults timeout: @config.rpcs.list_shared_resource_subscriptions.timeout,
|
1623
|
+
metadata: call_metadata,
|
1624
|
+
retry_policy: @config.rpcs.list_shared_resource_subscriptions.retry_policy
|
1625
|
+
|
1626
|
+
options.apply_defaults timeout: @config.timeout,
|
1627
|
+
metadata: @config.metadata,
|
1628
|
+
retry_policy: @config.retry_policy
|
1629
|
+
|
1630
|
+
@analytics_hub_service_stub.list_shared_resource_subscriptions request, options do |result, operation|
|
1631
|
+
result = ::Gapic::Rest::PagedEnumerable.new @analytics_hub_service_stub, :list_shared_resource_subscriptions, "shared_resource_subscriptions", request, result, options
|
1632
|
+
yield result, operation if block_given?
|
1633
|
+
return result
|
1634
|
+
end
|
1635
|
+
rescue ::Gapic::Rest::Error => e
|
1636
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1637
|
+
end
|
1638
|
+
|
1639
|
+
##
|
1640
|
+
# Revokes a given subscription.
|
1641
|
+
#
|
1642
|
+
# @overload revoke_subscription(request, options = nil)
|
1643
|
+
# Pass arguments to `revoke_subscription` via a request object, either of type
|
1644
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::RevokeSubscriptionRequest} or an equivalent Hash.
|
1645
|
+
#
|
1646
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::RevokeSubscriptionRequest, ::Hash]
|
1647
|
+
# A request object representing the call parameters. Required. To specify no
|
1648
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1649
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1650
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1651
|
+
#
|
1652
|
+
# @overload revoke_subscription(name: nil)
|
1653
|
+
# Pass arguments to `revoke_subscription` via keyword arguments. Note that at
|
1654
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1655
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1656
|
+
#
|
1657
|
+
# @param name [::String]
|
1658
|
+
# Required. Resource name of the subscription to revoke.
|
1659
|
+
# e.g. projects/123/locations/US/subscriptions/456
|
1660
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1661
|
+
# @yieldparam result [::Google::Cloud::Bigquery::AnalyticsHub::V1::RevokeSubscriptionResponse]
|
1662
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1663
|
+
#
|
1664
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::RevokeSubscriptionResponse]
|
1665
|
+
#
|
1666
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1667
|
+
#
|
1668
|
+
# @example Basic example
|
1669
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
1670
|
+
#
|
1671
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1672
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
1673
|
+
#
|
1674
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1675
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::RevokeSubscriptionRequest.new
|
1676
|
+
#
|
1677
|
+
# # Call the revoke_subscription method.
|
1678
|
+
# result = client.revoke_subscription request
|
1679
|
+
#
|
1680
|
+
# # The returned object is of type Google::Cloud::Bigquery::AnalyticsHub::V1::RevokeSubscriptionResponse.
|
1681
|
+
# p result
|
1682
|
+
#
|
1683
|
+
def revoke_subscription request, options = nil
|
1684
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1685
|
+
|
1686
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::RevokeSubscriptionRequest
|
1687
|
+
|
1688
|
+
# Converts hash and nil to an options object
|
1689
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1690
|
+
|
1691
|
+
# Customize the options with defaults
|
1692
|
+
call_metadata = @config.rpcs.revoke_subscription.metadata.to_h
|
1693
|
+
|
1694
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1695
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1696
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1697
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
1698
|
+
transports_version_send: [:rest]
|
1699
|
+
|
1700
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1701
|
+
|
1702
|
+
options.apply_defaults timeout: @config.rpcs.revoke_subscription.timeout,
|
1703
|
+
metadata: call_metadata,
|
1704
|
+
retry_policy: @config.rpcs.revoke_subscription.retry_policy
|
1705
|
+
|
1706
|
+
options.apply_defaults timeout: @config.timeout,
|
1707
|
+
metadata: @config.metadata,
|
1708
|
+
retry_policy: @config.retry_policy
|
1709
|
+
|
1710
|
+
@analytics_hub_service_stub.revoke_subscription request, options do |result, operation|
|
1711
|
+
yield result, operation if block_given?
|
1712
|
+
return result
|
1713
|
+
end
|
1714
|
+
rescue ::Gapic::Rest::Error => e
|
1715
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1716
|
+
end
|
1717
|
+
|
1718
|
+
##
|
1719
|
+
# Deletes a subscription.
|
1720
|
+
#
|
1721
|
+
# @overload delete_subscription(request, options = nil)
|
1722
|
+
# Pass arguments to `delete_subscription` via a request object, either of type
|
1723
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteSubscriptionRequest} or an equivalent Hash.
|
1724
|
+
#
|
1725
|
+
# @param request [::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteSubscriptionRequest, ::Hash]
|
1726
|
+
# A request object representing the call parameters. Required. To specify no
|
1727
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1728
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1729
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1730
|
+
#
|
1731
|
+
# @overload delete_subscription(name: nil)
|
1732
|
+
# Pass arguments to `delete_subscription` via keyword arguments. Note that at
|
1733
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1734
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1735
|
+
#
|
1736
|
+
# @param name [::String]
|
1737
|
+
# Required. Resource name of the subscription to delete.
|
1738
|
+
# e.g. projects/123/locations/US/subscriptions/456
|
1739
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1740
|
+
# @yieldparam result [::Gapic::Operation]
|
1741
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1742
|
+
#
|
1743
|
+
# @return [::Gapic::Operation]
|
1744
|
+
#
|
1745
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1746
|
+
#
|
1747
|
+
# @example Basic example
|
1748
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
1749
|
+
#
|
1750
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1751
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
1752
|
+
#
|
1753
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1754
|
+
# request = Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteSubscriptionRequest.new
|
1755
|
+
#
|
1756
|
+
# # Call the delete_subscription method.
|
1757
|
+
# result = client.delete_subscription request
|
1758
|
+
#
|
1759
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1760
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1761
|
+
# # Here is how to wait for a response.
|
1762
|
+
# result.wait_until_done! timeout: 60
|
1763
|
+
# if result.response?
|
1764
|
+
# p result.response
|
1765
|
+
# else
|
1766
|
+
# puts "No response received."
|
1767
|
+
# end
|
1768
|
+
#
|
1769
|
+
def delete_subscription request, options = nil
|
1770
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1771
|
+
|
1772
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteSubscriptionRequest
|
1773
|
+
|
1774
|
+
# Converts hash and nil to an options object
|
1775
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1776
|
+
|
1777
|
+
# Customize the options with defaults
|
1778
|
+
call_metadata = @config.rpcs.delete_subscription.metadata.to_h
|
1779
|
+
|
1780
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1781
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1782
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1783
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
1784
|
+
transports_version_send: [:rest]
|
1785
|
+
|
1786
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1787
|
+
|
1788
|
+
options.apply_defaults timeout: @config.rpcs.delete_subscription.timeout,
|
1789
|
+
metadata: call_metadata,
|
1790
|
+
retry_policy: @config.rpcs.delete_subscription.retry_policy
|
1791
|
+
|
1792
|
+
options.apply_defaults timeout: @config.timeout,
|
1793
|
+
metadata: @config.metadata,
|
1794
|
+
retry_policy: @config.retry_policy
|
1795
|
+
|
1796
|
+
@analytics_hub_service_stub.delete_subscription request, options do |result, operation|
|
1797
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1798
|
+
yield result, operation if block_given?
|
1799
|
+
return result
|
1800
|
+
end
|
1801
|
+
rescue ::Gapic::Rest::Error => e
|
1802
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1803
|
+
end
|
1804
|
+
|
1805
|
+
##
|
1806
|
+
# Gets the IAM policy.
|
1807
|
+
#
|
1808
|
+
# @overload get_iam_policy(request, options = nil)
|
1809
|
+
# Pass arguments to `get_iam_policy` via a request object, either of type
|
1810
|
+
# {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
|
1811
|
+
#
|
1812
|
+
# @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
|
1813
|
+
# A request object representing the call parameters. Required. To specify no
|
1814
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1815
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1816
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1817
|
+
#
|
1818
|
+
# @overload get_iam_policy(resource: nil, options: nil)
|
1819
|
+
# Pass arguments to `get_iam_policy` via keyword arguments. Note that at
|
1820
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1821
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1822
|
+
#
|
1823
|
+
# @param resource [::String]
|
1824
|
+
# REQUIRED: The resource for which the policy is being requested.
|
1825
|
+
# See the operation documentation for the appropriate value for this field.
|
1826
|
+
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
1827
|
+
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
1828
|
+
# `GetIamPolicy`.
|
1829
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1830
|
+
# @yieldparam result [::Google::Iam::V1::Policy]
|
1831
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1832
|
+
#
|
1833
|
+
# @return [::Google::Iam::V1::Policy]
|
1834
|
+
#
|
1835
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1836
|
+
#
|
1837
|
+
# @example Basic example
|
1838
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
1839
|
+
#
|
1840
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1841
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
1842
|
+
#
|
1843
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1844
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
1845
|
+
#
|
1846
|
+
# # Call the get_iam_policy method.
|
1847
|
+
# result = client.get_iam_policy request
|
1848
|
+
#
|
1849
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1850
|
+
# p result
|
1851
|
+
#
|
1852
|
+
def get_iam_policy request, options = nil
|
1853
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1854
|
+
|
1855
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
|
1856
|
+
|
1857
|
+
# Converts hash and nil to an options object
|
1858
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1859
|
+
|
1860
|
+
# Customize the options with defaults
|
1861
|
+
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
1862
|
+
|
1863
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1864
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1865
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1866
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
1867
|
+
transports_version_send: [:rest]
|
1868
|
+
|
1869
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1870
|
+
|
1871
|
+
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
1872
|
+
metadata: call_metadata,
|
1873
|
+
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
1874
|
+
|
1875
|
+
options.apply_defaults timeout: @config.timeout,
|
1876
|
+
metadata: @config.metadata,
|
1877
|
+
retry_policy: @config.retry_policy
|
1878
|
+
|
1879
|
+
@analytics_hub_service_stub.get_iam_policy request, options do |result, operation|
|
1880
|
+
yield result, operation if block_given?
|
1881
|
+
return result
|
1882
|
+
end
|
1883
|
+
rescue ::Gapic::Rest::Error => e
|
1884
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1885
|
+
end
|
1886
|
+
|
1887
|
+
##
|
1888
|
+
# Sets the IAM policy.
|
1889
|
+
#
|
1890
|
+
# @overload set_iam_policy(request, options = nil)
|
1891
|
+
# Pass arguments to `set_iam_policy` via a request object, either of type
|
1892
|
+
# {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
|
1893
|
+
#
|
1894
|
+
# @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
|
1895
|
+
# A request object representing the call parameters. Required. To specify no
|
1896
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1897
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1898
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1899
|
+
#
|
1900
|
+
# @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
|
1901
|
+
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
1902
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1903
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1904
|
+
#
|
1905
|
+
# @param resource [::String]
|
1906
|
+
# REQUIRED: The resource for which the policy is being specified.
|
1907
|
+
# See the operation documentation for the appropriate value for this field.
|
1908
|
+
# @param policy [::Google::Iam::V1::Policy, ::Hash]
|
1909
|
+
# REQUIRED: The complete policy to be applied to the `resource`. The size of
|
1910
|
+
# the policy is limited to a few 10s of KB. An empty policy is a
|
1911
|
+
# valid policy but certain Cloud Platform services (such as Projects)
|
1912
|
+
# might reject them.
|
1913
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1914
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
1915
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
1916
|
+
# following default mask is used:
|
1917
|
+
#
|
1918
|
+
# `paths: "bindings, etag"`
|
1919
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1920
|
+
# @yieldparam result [::Google::Iam::V1::Policy]
|
1921
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1922
|
+
#
|
1923
|
+
# @return [::Google::Iam::V1::Policy]
|
1924
|
+
#
|
1925
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1926
|
+
#
|
1927
|
+
# @example Basic example
|
1928
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
1929
|
+
#
|
1930
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1931
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
1932
|
+
#
|
1933
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1934
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
1935
|
+
#
|
1936
|
+
# # Call the set_iam_policy method.
|
1937
|
+
# result = client.set_iam_policy request
|
1938
|
+
#
|
1939
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1940
|
+
# p result
|
1941
|
+
#
|
1942
|
+
def set_iam_policy request, options = nil
|
1943
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1944
|
+
|
1945
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
|
1946
|
+
|
1947
|
+
# Converts hash and nil to an options object
|
1948
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1949
|
+
|
1950
|
+
# Customize the options with defaults
|
1951
|
+
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
1952
|
+
|
1953
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1954
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1955
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1956
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
1957
|
+
transports_version_send: [:rest]
|
1958
|
+
|
1959
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1960
|
+
|
1961
|
+
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1962
|
+
metadata: call_metadata,
|
1963
|
+
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1964
|
+
|
1965
|
+
options.apply_defaults timeout: @config.timeout,
|
1966
|
+
metadata: @config.metadata,
|
1967
|
+
retry_policy: @config.retry_policy
|
1968
|
+
|
1969
|
+
@analytics_hub_service_stub.set_iam_policy request, options do |result, operation|
|
1970
|
+
yield result, operation if block_given?
|
1971
|
+
return result
|
1972
|
+
end
|
1973
|
+
rescue ::Gapic::Rest::Error => e
|
1974
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1975
|
+
end
|
1976
|
+
|
1977
|
+
##
|
1978
|
+
# Returns the permissions that a caller has.
|
1979
|
+
#
|
1980
|
+
# @overload test_iam_permissions(request, options = nil)
|
1981
|
+
# Pass arguments to `test_iam_permissions` via a request object, either of type
|
1982
|
+
# {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
|
1983
|
+
#
|
1984
|
+
# @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
|
1985
|
+
# A request object representing the call parameters. Required. To specify no
|
1986
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1987
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1988
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1989
|
+
#
|
1990
|
+
# @overload test_iam_permissions(resource: nil, permissions: nil)
|
1991
|
+
# Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
|
1992
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1993
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1994
|
+
#
|
1995
|
+
# @param resource [::String]
|
1996
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
1997
|
+
# See the operation documentation for the appropriate value for this field.
|
1998
|
+
# @param permissions [::Array<::String>]
|
1999
|
+
# The set of permissions to check for the `resource`. Permissions with
|
2000
|
+
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
2001
|
+
# information see
|
2002
|
+
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
2003
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2004
|
+
# @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse]
|
2005
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2006
|
+
#
|
2007
|
+
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
2008
|
+
#
|
2009
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2010
|
+
#
|
2011
|
+
# @example Basic example
|
2012
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
2013
|
+
#
|
2014
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2015
|
+
# client = Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new
|
2016
|
+
#
|
2017
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2018
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
2019
|
+
#
|
2020
|
+
# # Call the test_iam_permissions method.
|
2021
|
+
# result = client.test_iam_permissions request
|
2022
|
+
#
|
2023
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
2024
|
+
# p result
|
2025
|
+
#
|
2026
|
+
def test_iam_permissions request, options = nil
|
2027
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2028
|
+
|
2029
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
|
2030
|
+
|
2031
|
+
# Converts hash and nil to an options object
|
2032
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2033
|
+
|
2034
|
+
# Customize the options with defaults
|
2035
|
+
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
2036
|
+
|
2037
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2038
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2039
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2040
|
+
gapic_version: ::Google::Cloud::Bigquery::AnalyticsHub::V1::VERSION,
|
2041
|
+
transports_version_send: [:rest]
|
2042
|
+
|
2043
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2044
|
+
|
2045
|
+
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
2046
|
+
metadata: call_metadata,
|
2047
|
+
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
2048
|
+
|
2049
|
+
options.apply_defaults timeout: @config.timeout,
|
2050
|
+
metadata: @config.metadata,
|
2051
|
+
retry_policy: @config.retry_policy
|
2052
|
+
|
2053
|
+
@analytics_hub_service_stub.test_iam_permissions request, options do |result, operation|
|
2054
|
+
yield result, operation if block_given?
|
2055
|
+
return result
|
2056
|
+
end
|
2057
|
+
rescue ::Gapic::Rest::Error => e
|
2058
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2059
|
+
end
|
2060
|
+
|
2061
|
+
##
|
2062
|
+
# Configuration class for the AnalyticsHubService REST API.
|
2063
|
+
#
|
2064
|
+
# This class represents the configuration for AnalyticsHubService REST,
|
2065
|
+
# providing control over timeouts, retry behavior, logging, transport
|
2066
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
2067
|
+
# applied individually to specific RPCs. See
|
2068
|
+
# {::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client::Configuration::Rpcs}
|
2069
|
+
# for a list of RPCs that can be configured independently.
|
2070
|
+
#
|
2071
|
+
# Configuration can be applied globally to all clients, or to a single client
|
2072
|
+
# on construction.
|
2073
|
+
#
|
2074
|
+
# @example
|
2075
|
+
#
|
2076
|
+
# # Modify the global config, setting the timeout for
|
2077
|
+
# # list_data_exchanges to 20 seconds,
|
2078
|
+
# # and all remaining timeouts to 10 seconds.
|
2079
|
+
# ::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.configure do |config|
|
2080
|
+
# config.timeout = 10.0
|
2081
|
+
# config.rpcs.list_data_exchanges.timeout = 20.0
|
2082
|
+
# end
|
2083
|
+
#
|
2084
|
+
# # Apply the above configuration only to a new client.
|
2085
|
+
# client = ::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Rest::Client.new do |config|
|
2086
|
+
# config.timeout = 10.0
|
2087
|
+
# config.rpcs.list_data_exchanges.timeout = 20.0
|
2088
|
+
# end
|
2089
|
+
#
|
2090
|
+
# @!attribute [rw] endpoint
|
2091
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
2092
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
2093
|
+
# @return [::String,nil]
|
2094
|
+
# @!attribute [rw] credentials
|
2095
|
+
# Credentials to send with calls. You may provide any of the following types:
|
2096
|
+
# * (`String`) The path to a service account key file in JSON format
|
2097
|
+
# * (`Hash`) A service account key as a Hash
|
2098
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
2099
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
2100
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2101
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
2102
|
+
# * (`nil`) indicating no credentials
|
2103
|
+
# @return [::Object]
|
2104
|
+
# @!attribute [rw] scope
|
2105
|
+
# The OAuth scopes
|
2106
|
+
# @return [::Array<::String>]
|
2107
|
+
# @!attribute [rw] lib_name
|
2108
|
+
# The library name as recorded in instrumentation and logging
|
2109
|
+
# @return [::String]
|
2110
|
+
# @!attribute [rw] lib_version
|
2111
|
+
# The library version as recorded in instrumentation and logging
|
2112
|
+
# @return [::String]
|
2113
|
+
# @!attribute [rw] timeout
|
2114
|
+
# The call timeout in seconds.
|
2115
|
+
# @return [::Numeric]
|
2116
|
+
# @!attribute [rw] metadata
|
2117
|
+
# Additional headers to be sent with the call.
|
2118
|
+
# @return [::Hash{::Symbol=>::String}]
|
2119
|
+
# @!attribute [rw] retry_policy
|
2120
|
+
# The retry policy. The value is a hash with the following keys:
|
2121
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
2122
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
2123
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
2124
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2125
|
+
# trigger a retry.
|
2126
|
+
# @return [::Hash]
|
2127
|
+
# @!attribute [rw] quota_project
|
2128
|
+
# A separate project against which to charge quota.
|
2129
|
+
# @return [::String]
|
2130
|
+
# @!attribute [rw] universe_domain
|
2131
|
+
# The universe domain within which to make requests. This determines the
|
2132
|
+
# default endpoint URL. The default value of nil uses the environment
|
2133
|
+
# universe (usually the default "googleapis.com" universe).
|
2134
|
+
# @return [::String,nil]
|
2135
|
+
#
|
2136
|
+
class Configuration
|
2137
|
+
extend ::Gapic::Config
|
2138
|
+
|
2139
|
+
# @private
|
2140
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
2141
|
+
DEFAULT_ENDPOINT = "analyticshub.googleapis.com"
|
2142
|
+
|
2143
|
+
config_attr :endpoint, nil, ::String, nil
|
2144
|
+
config_attr :credentials, nil do |value|
|
2145
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2146
|
+
allowed.any? { |klass| klass === value }
|
2147
|
+
end
|
2148
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
2149
|
+
config_attr :lib_name, nil, ::String, nil
|
2150
|
+
config_attr :lib_version, nil, ::String, nil
|
2151
|
+
config_attr :timeout, nil, ::Numeric, nil
|
2152
|
+
config_attr :metadata, nil, ::Hash, nil
|
2153
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2154
|
+
config_attr :quota_project, nil, ::String, nil
|
2155
|
+
config_attr :universe_domain, nil, ::String, nil
|
2156
|
+
|
2157
|
+
# @private
|
2158
|
+
def initialize parent_config = nil
|
2159
|
+
@parent_config = parent_config unless parent_config.nil?
|
2160
|
+
|
2161
|
+
yield self if block_given?
|
2162
|
+
end
|
2163
|
+
|
2164
|
+
##
|
2165
|
+
# Configurations for individual RPCs
|
2166
|
+
# @return [Rpcs]
|
2167
|
+
#
|
2168
|
+
def rpcs
|
2169
|
+
@rpcs ||= begin
|
2170
|
+
parent_rpcs = nil
|
2171
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
2172
|
+
Rpcs.new parent_rpcs
|
2173
|
+
end
|
2174
|
+
end
|
2175
|
+
|
2176
|
+
##
|
2177
|
+
# Configuration RPC class for the AnalyticsHubService API.
|
2178
|
+
#
|
2179
|
+
# Includes fields providing the configuration for each RPC in this service.
|
2180
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
2181
|
+
# the following configuration fields:
|
2182
|
+
#
|
2183
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
2184
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
2185
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
2186
|
+
# include the following keys:
|
2187
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
2188
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
2189
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
2190
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2191
|
+
# trigger a retry.
|
2192
|
+
#
|
2193
|
+
class Rpcs
|
2194
|
+
##
|
2195
|
+
# RPC-specific configuration for `list_data_exchanges`
|
2196
|
+
# @return [::Gapic::Config::Method]
|
2197
|
+
#
|
2198
|
+
attr_reader :list_data_exchanges
|
2199
|
+
##
|
2200
|
+
# RPC-specific configuration for `list_org_data_exchanges`
|
2201
|
+
# @return [::Gapic::Config::Method]
|
2202
|
+
#
|
2203
|
+
attr_reader :list_org_data_exchanges
|
2204
|
+
##
|
2205
|
+
# RPC-specific configuration for `get_data_exchange`
|
2206
|
+
# @return [::Gapic::Config::Method]
|
2207
|
+
#
|
2208
|
+
attr_reader :get_data_exchange
|
2209
|
+
##
|
2210
|
+
# RPC-specific configuration for `create_data_exchange`
|
2211
|
+
# @return [::Gapic::Config::Method]
|
2212
|
+
#
|
2213
|
+
attr_reader :create_data_exchange
|
2214
|
+
##
|
2215
|
+
# RPC-specific configuration for `update_data_exchange`
|
2216
|
+
# @return [::Gapic::Config::Method]
|
2217
|
+
#
|
2218
|
+
attr_reader :update_data_exchange
|
2219
|
+
##
|
2220
|
+
# RPC-specific configuration for `delete_data_exchange`
|
2221
|
+
# @return [::Gapic::Config::Method]
|
2222
|
+
#
|
2223
|
+
attr_reader :delete_data_exchange
|
2224
|
+
##
|
2225
|
+
# RPC-specific configuration for `list_listings`
|
2226
|
+
# @return [::Gapic::Config::Method]
|
2227
|
+
#
|
2228
|
+
attr_reader :list_listings
|
2229
|
+
##
|
2230
|
+
# RPC-specific configuration for `get_listing`
|
2231
|
+
# @return [::Gapic::Config::Method]
|
2232
|
+
#
|
2233
|
+
attr_reader :get_listing
|
2234
|
+
##
|
2235
|
+
# RPC-specific configuration for `create_listing`
|
2236
|
+
# @return [::Gapic::Config::Method]
|
2237
|
+
#
|
2238
|
+
attr_reader :create_listing
|
2239
|
+
##
|
2240
|
+
# RPC-specific configuration for `update_listing`
|
2241
|
+
# @return [::Gapic::Config::Method]
|
2242
|
+
#
|
2243
|
+
attr_reader :update_listing
|
2244
|
+
##
|
2245
|
+
# RPC-specific configuration for `delete_listing`
|
2246
|
+
# @return [::Gapic::Config::Method]
|
2247
|
+
#
|
2248
|
+
attr_reader :delete_listing
|
2249
|
+
##
|
2250
|
+
# RPC-specific configuration for `subscribe_listing`
|
2251
|
+
# @return [::Gapic::Config::Method]
|
2252
|
+
#
|
2253
|
+
attr_reader :subscribe_listing
|
2254
|
+
##
|
2255
|
+
# RPC-specific configuration for `subscribe_data_exchange`
|
2256
|
+
# @return [::Gapic::Config::Method]
|
2257
|
+
#
|
2258
|
+
attr_reader :subscribe_data_exchange
|
2259
|
+
##
|
2260
|
+
# RPC-specific configuration for `refresh_subscription`
|
2261
|
+
# @return [::Gapic::Config::Method]
|
2262
|
+
#
|
2263
|
+
attr_reader :refresh_subscription
|
2264
|
+
##
|
2265
|
+
# RPC-specific configuration for `get_subscription`
|
2266
|
+
# @return [::Gapic::Config::Method]
|
2267
|
+
#
|
2268
|
+
attr_reader :get_subscription
|
2269
|
+
##
|
2270
|
+
# RPC-specific configuration for `list_subscriptions`
|
2271
|
+
# @return [::Gapic::Config::Method]
|
2272
|
+
#
|
2273
|
+
attr_reader :list_subscriptions
|
2274
|
+
##
|
2275
|
+
# RPC-specific configuration for `list_shared_resource_subscriptions`
|
2276
|
+
# @return [::Gapic::Config::Method]
|
2277
|
+
#
|
2278
|
+
attr_reader :list_shared_resource_subscriptions
|
2279
|
+
##
|
2280
|
+
# RPC-specific configuration for `revoke_subscription`
|
2281
|
+
# @return [::Gapic::Config::Method]
|
2282
|
+
#
|
2283
|
+
attr_reader :revoke_subscription
|
2284
|
+
##
|
2285
|
+
# RPC-specific configuration for `delete_subscription`
|
2286
|
+
# @return [::Gapic::Config::Method]
|
2287
|
+
#
|
2288
|
+
attr_reader :delete_subscription
|
2289
|
+
##
|
2290
|
+
# RPC-specific configuration for `get_iam_policy`
|
2291
|
+
# @return [::Gapic::Config::Method]
|
2292
|
+
#
|
2293
|
+
attr_reader :get_iam_policy
|
2294
|
+
##
|
2295
|
+
# RPC-specific configuration for `set_iam_policy`
|
2296
|
+
# @return [::Gapic::Config::Method]
|
2297
|
+
#
|
2298
|
+
attr_reader :set_iam_policy
|
2299
|
+
##
|
2300
|
+
# RPC-specific configuration for `test_iam_permissions`
|
2301
|
+
# @return [::Gapic::Config::Method]
|
2302
|
+
#
|
2303
|
+
attr_reader :test_iam_permissions
|
2304
|
+
|
2305
|
+
# @private
|
2306
|
+
def initialize parent_rpcs = nil
|
2307
|
+
list_data_exchanges_config = parent_rpcs.list_data_exchanges if parent_rpcs.respond_to? :list_data_exchanges
|
2308
|
+
@list_data_exchanges = ::Gapic::Config::Method.new list_data_exchanges_config
|
2309
|
+
list_org_data_exchanges_config = parent_rpcs.list_org_data_exchanges if parent_rpcs.respond_to? :list_org_data_exchanges
|
2310
|
+
@list_org_data_exchanges = ::Gapic::Config::Method.new list_org_data_exchanges_config
|
2311
|
+
get_data_exchange_config = parent_rpcs.get_data_exchange if parent_rpcs.respond_to? :get_data_exchange
|
2312
|
+
@get_data_exchange = ::Gapic::Config::Method.new get_data_exchange_config
|
2313
|
+
create_data_exchange_config = parent_rpcs.create_data_exchange if parent_rpcs.respond_to? :create_data_exchange
|
2314
|
+
@create_data_exchange = ::Gapic::Config::Method.new create_data_exchange_config
|
2315
|
+
update_data_exchange_config = parent_rpcs.update_data_exchange if parent_rpcs.respond_to? :update_data_exchange
|
2316
|
+
@update_data_exchange = ::Gapic::Config::Method.new update_data_exchange_config
|
2317
|
+
delete_data_exchange_config = parent_rpcs.delete_data_exchange if parent_rpcs.respond_to? :delete_data_exchange
|
2318
|
+
@delete_data_exchange = ::Gapic::Config::Method.new delete_data_exchange_config
|
2319
|
+
list_listings_config = parent_rpcs.list_listings if parent_rpcs.respond_to? :list_listings
|
2320
|
+
@list_listings = ::Gapic::Config::Method.new list_listings_config
|
2321
|
+
get_listing_config = parent_rpcs.get_listing if parent_rpcs.respond_to? :get_listing
|
2322
|
+
@get_listing = ::Gapic::Config::Method.new get_listing_config
|
2323
|
+
create_listing_config = parent_rpcs.create_listing if parent_rpcs.respond_to? :create_listing
|
2324
|
+
@create_listing = ::Gapic::Config::Method.new create_listing_config
|
2325
|
+
update_listing_config = parent_rpcs.update_listing if parent_rpcs.respond_to? :update_listing
|
2326
|
+
@update_listing = ::Gapic::Config::Method.new update_listing_config
|
2327
|
+
delete_listing_config = parent_rpcs.delete_listing if parent_rpcs.respond_to? :delete_listing
|
2328
|
+
@delete_listing = ::Gapic::Config::Method.new delete_listing_config
|
2329
|
+
subscribe_listing_config = parent_rpcs.subscribe_listing if parent_rpcs.respond_to? :subscribe_listing
|
2330
|
+
@subscribe_listing = ::Gapic::Config::Method.new subscribe_listing_config
|
2331
|
+
subscribe_data_exchange_config = parent_rpcs.subscribe_data_exchange if parent_rpcs.respond_to? :subscribe_data_exchange
|
2332
|
+
@subscribe_data_exchange = ::Gapic::Config::Method.new subscribe_data_exchange_config
|
2333
|
+
refresh_subscription_config = parent_rpcs.refresh_subscription if parent_rpcs.respond_to? :refresh_subscription
|
2334
|
+
@refresh_subscription = ::Gapic::Config::Method.new refresh_subscription_config
|
2335
|
+
get_subscription_config = parent_rpcs.get_subscription if parent_rpcs.respond_to? :get_subscription
|
2336
|
+
@get_subscription = ::Gapic::Config::Method.new get_subscription_config
|
2337
|
+
list_subscriptions_config = parent_rpcs.list_subscriptions if parent_rpcs.respond_to? :list_subscriptions
|
2338
|
+
@list_subscriptions = ::Gapic::Config::Method.new list_subscriptions_config
|
2339
|
+
list_shared_resource_subscriptions_config = parent_rpcs.list_shared_resource_subscriptions if parent_rpcs.respond_to? :list_shared_resource_subscriptions
|
2340
|
+
@list_shared_resource_subscriptions = ::Gapic::Config::Method.new list_shared_resource_subscriptions_config
|
2341
|
+
revoke_subscription_config = parent_rpcs.revoke_subscription if parent_rpcs.respond_to? :revoke_subscription
|
2342
|
+
@revoke_subscription = ::Gapic::Config::Method.new revoke_subscription_config
|
2343
|
+
delete_subscription_config = parent_rpcs.delete_subscription if parent_rpcs.respond_to? :delete_subscription
|
2344
|
+
@delete_subscription = ::Gapic::Config::Method.new delete_subscription_config
|
2345
|
+
get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
|
2346
|
+
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
2347
|
+
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
2348
|
+
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
2349
|
+
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
2350
|
+
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
2351
|
+
|
2352
|
+
yield self if block_given?
|
2353
|
+
end
|
2354
|
+
end
|
2355
|
+
end
|
2356
|
+
end
|
2357
|
+
end
|
2358
|
+
end
|
2359
|
+
end
|
2360
|
+
end
|
2361
|
+
end
|
2362
|
+
end
|
2363
|
+
end
|