google-cloud-bigquery-analytics_hub 1.5.0 → 1.6.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/.yardopts +1 -1
- data/README.md +6 -12
- data/lib/google/cloud/bigquery/analytics_hub/version.rb +1 -1
- data/lib/google/cloud/bigquery/analytics_hub.rb +13 -4
- data/lib/google-cloud-bigquery-analytics_hub.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 757758295446cc5ba06a53ca00252dec22ba025aaeb6763db295bb3a2d73a710
|
|
4
|
+
data.tar.gz: e7cb1d976cff8476b156f591ed95cc646bda5ef30c729cbbdbe2d912a543a0a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb166430d1a9deecfd922dbe7e848c2a0d6f6687b413a46daf14a21ed4ed8746b1622a547916454b6c0078dc7b479a69f4634bf88511795f74944f5be73e9a2f
|
|
7
|
+
data.tar.gz: 5c8b139294fe0a903db2e7f91d626f9dcec34a75dbbb10017ca3eb06766bfdf1b72d99155a445cf1660a819499a21f5b3b07e465f87dcd55d002f86431e6a096
|
data/.yardopts
CHANGED
data/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
# Ruby Client for the Analytics Hub
|
|
1
|
+
# Ruby Client for the Analytics Hub API
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Exchange data and analytics assets securely and efficiently.
|
|
4
4
|
|
|
5
|
-
Analytics Hub is a data exchange platform that enables you to share data and insights at scale across organizational boundaries with a robust security and privacy framework. With Analytics Hub, you can discover and access a data library curated by various data providers.
|
|
6
5
|
|
|
7
6
|
Actual client classes for the various versions of this API are defined in
|
|
8
7
|
_versioned_ client gems, with names of the form `google-cloud-bigquery-analytics_hub-v*`.
|
|
@@ -18,9 +17,6 @@ themselves can be found in the client library documentation for the versioned
|
|
|
18
17
|
client gems:
|
|
19
18
|
[google-cloud-bigquery-analytics_hub-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/latest).
|
|
20
19
|
|
|
21
|
-
See also the [Product Documentation](https://cloud.google.com/bigquery)
|
|
22
|
-
for more usage information.
|
|
23
|
-
|
|
24
20
|
## Quick Start
|
|
25
21
|
|
|
26
22
|
```
|
|
@@ -76,12 +72,10 @@ working, try updating the versioned clients in your bundle or installed gems:
|
|
|
76
72
|
|
|
77
73
|
This library is supported on Ruby 3.2+.
|
|
78
74
|
|
|
79
|
-
Google provides official support for Ruby versions
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
|
84
|
-
support schedule.
|
|
75
|
+
Google provides official support for Ruby versions as described in the
|
|
76
|
+
[Supported Ruby versions](https://docs.cloud.google.com/ruby/getting-started/supported-ruby-versions)
|
|
77
|
+
policy. Older versions of Ruby _may_ still work, but are unsupported and not
|
|
78
|
+
recommended.
|
|
85
79
|
|
|
86
80
|
## Which client should I use?
|
|
87
81
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -56,9 +56,11 @@ module Google
|
|
|
56
56
|
# `version` parameter. If the AnalyticsHubService service is
|
|
57
57
|
# supported by that API version, and the corresponding gem is available, the
|
|
58
58
|
# appropriate versioned client will be returned.
|
|
59
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
60
|
+
# the `transport` parameter.
|
|
59
61
|
#
|
|
60
62
|
# Raises an exception if the currently installed versioned client gem for the
|
|
61
|
-
# given API version does not support the AnalyticsHubService service.
|
|
63
|
+
# given API version does not support the given transport of the AnalyticsHubService service.
|
|
62
64
|
# You can determine whether the method will succeed by calling
|
|
63
65
|
# {Google::Cloud::Bigquery::AnalyticsHub.analytics_hub_service_available?}.
|
|
64
66
|
#
|
|
@@ -73,9 +75,10 @@ module Google
|
|
|
73
75
|
#
|
|
74
76
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
75
77
|
# Defaults to `:v1`.
|
|
78
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
76
79
|
# @return [::Object] A client object for the specified version.
|
|
77
80
|
#
|
|
78
|
-
def self.analytics_hub_service version: :v1, &block
|
|
81
|
+
def self.analytics_hub_service version: :v1, transport: :grpc, &block
|
|
79
82
|
require "google/cloud/bigquery/analytics_hub/#{version.to_s.downcase}"
|
|
80
83
|
|
|
81
84
|
package_name = Google::Cloud::Bigquery::AnalyticsHub
|
|
@@ -83,6 +86,7 @@ module Google
|
|
|
83
86
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
84
87
|
.first
|
|
85
88
|
service_module = Google::Cloud::Bigquery::AnalyticsHub.const_get(package_name).const_get(:AnalyticsHubService)
|
|
89
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
86
90
|
service_module.const_get(:Client).new(&block)
|
|
87
91
|
end
|
|
88
92
|
|
|
@@ -95,9 +99,10 @@ module Google
|
|
|
95
99
|
#
|
|
96
100
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
97
101
|
# Defaults to `:v1`.
|
|
102
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
98
103
|
# @return [boolean] Whether the service is available.
|
|
99
104
|
#
|
|
100
|
-
def self.analytics_hub_service_available? version: :v1
|
|
105
|
+
def self.analytics_hub_service_available? version: :v1, transport: :grpc
|
|
101
106
|
require "google/cloud/bigquery/analytics_hub/#{version.to_s.downcase}"
|
|
102
107
|
package_name = Google::Cloud::Bigquery::AnalyticsHub
|
|
103
108
|
.constants
|
|
@@ -107,6 +112,10 @@ module Google
|
|
|
107
112
|
service_module = Google::Cloud::Bigquery::AnalyticsHub.const_get package_name
|
|
108
113
|
return false unless service_module.const_defined? :AnalyticsHubService
|
|
109
114
|
service_module = service_module.const_get :AnalyticsHubService
|
|
115
|
+
if transport == :rest
|
|
116
|
+
return false unless service_module.const_defined? :Rest
|
|
117
|
+
service_module = service_module.const_get :Rest
|
|
118
|
+
end
|
|
110
119
|
service_module.const_defined? :Client
|
|
111
120
|
rescue ::LoadError
|
|
112
121
|
false
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-bigquery-analytics_hub
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -43,10 +43,7 @@ dependencies:
|
|
|
43
43
|
- - "~>"
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: '1.6'
|
|
46
|
-
description:
|
|
47
|
-
and insights at scale across organizational boundaries with a robust security and
|
|
48
|
-
privacy framework. With Analytics Hub, you can discover and access a data library
|
|
49
|
-
curated by various data providers.
|
|
46
|
+
description: Exchange data and analytics assets securely and efficiently.
|
|
50
47
|
email: googleapis-packages@google.com
|
|
51
48
|
executables: []
|
|
52
49
|
extensions: []
|
|
@@ -79,5 +76,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
79
76
|
requirements: []
|
|
80
77
|
rubygems_version: 3.6.9
|
|
81
78
|
specification_version: 4
|
|
82
|
-
summary:
|
|
79
|
+
summary: Exchange data and analytics assets securely and efficiently.
|
|
83
80
|
test_files: []
|