google-cloud-bigquery-analytics_hub 1.5.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ece497b2b2f7d87d730cb76037ee7d7911a9b0ab36c197f621180d947ca69a58
4
- data.tar.gz: b26c98f33fb26e8914299c0049b3d0b7b705e6f699cb0c88e11b31252d4a2799
3
+ metadata.gz: 757758295446cc5ba06a53ca00252dec22ba025aaeb6763db295bb3a2d73a710
4
+ data.tar.gz: e7cb1d976cff8476b156f591ed95cc646bda5ef30c729cbbdbe2d912a543a0a7
5
5
  SHA512:
6
- metadata.gz: 28aacf49ec07c1eda0fc3f3e9a12661d844d4d8ab308c3aec698562826ca7c4fd7a911d3bb9a60b6edb8f658240b9bb5c8b310ff2c6dbce4480b67825a3ce1f1
7
- data.tar.gz: b9777a412420d633cc03531f7a82cf2fb0c01d9b96204fb952676657f2c33b2e3a19fbcadf8c537e87ffc33bed9d53ab4f37249d5566054fcef542eda1df262c
6
+ metadata.gz: eb166430d1a9deecfd922dbe7e848c2a0d6f6687b413a46daf14a21ed4ed8746b1622a547916454b6c0078dc7b479a69f4634bf88511795f74944f5be73e9a2f
7
+ data.tar.gz: 5c8b139294fe0a903db2e7f91d626f9dcec34a75dbbb10017ca3eb06766bfdf1b72d99155a445cf1660a819499a21f5b3b07e465f87dcd55d002f86431e6a096
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title="Analytics Hub V1 API"
2
+ --title="Analytics Hub API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
- # Ruby Client for the Analytics Hub V1 API
1
+ # Ruby Client for the Analytics Hub API
2
2
 
3
- API Client library for the Analytics Hub V1 API
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 that are actively supported
80
- by Ruby Core—that is, Ruby versions that are either in normal maintenance or
81
- in security maintenance, and not end of life. Older versions of Ruby _may_
82
- still work, but are unsupported and not recommended. See
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
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Bigquery
23
23
  module AnalyticsHub
24
- VERSION = "1.5.1"
24
+ VERSION = "1.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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.5.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: Analytics Hub is a data exchange platform that enables you to share data
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: API Client library for the Analytics Hub V1 API
79
+ summary: Exchange data and analytics assets securely and efficiently.
83
80
  test_files: []