google-cloud-bigquery-migration 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 +4 -4
- data/README.md +5 -11
- data/lib/google/cloud/bigquery/migration/version.rb +1 -1
- data/lib/google/cloud/bigquery/migration.rb +12 -3
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52ed7cbb7e2adda5bd0aaa075f58a720256d8fad4d800058b31d9ed69b0728b5
|
|
4
|
+
data.tar.gz: 9c8f7e8bc2c83d1000389fa9fc2597f27cc952c7f15b113b610a049ffb232077
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5649e94ffa0b125723adb11521ef01a19aa57a7288910547877ccbcd39218168bb637cefd9fb8bd87a6056ff288852045f7e648fb731a245a8edb03ee3f0518
|
|
7
|
+
data.tar.gz: 7d93ab89d52332a98203761562b4be82a34b0ad6e05af43153b6675c7e53029de86f07cde8aae88b7bfac1b224861c304be9c06a4f9463aa4548faa146ab62f9
|
data/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# Ruby Client for the BigQuery Migration API
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The migration service, exposing apis for migration jobs operations, and agent management.
|
|
4
4
|
|
|
5
|
-
The BigQuery Migration Service is a comprehensive solution for migrating your data warehouse to BigQuery.
|
|
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-migration-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-migration-v2](https://cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest).
|
|
20
19
|
|
|
21
|
-
See also the [Product Documentation](https://cloud.google.com/bigquery/docs/migration-intro)
|
|
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
|
|
|
@@ -56,9 +56,11 @@ module Google
|
|
|
56
56
|
# `version` parameter. If the MigrationService 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 MigrationService service.
|
|
63
|
+
# given API version does not support the given transport of the MigrationService service.
|
|
62
64
|
# You can determine whether the method will succeed by calling
|
|
63
65
|
# {Google::Cloud::Bigquery::Migration.migration_service_available?}.
|
|
64
66
|
#
|
|
@@ -68,9 +70,10 @@ module Google
|
|
|
68
70
|
#
|
|
69
71
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
70
72
|
# Defaults to `:v2`.
|
|
73
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
71
74
|
# @return [::Object] A client object for the specified version.
|
|
72
75
|
#
|
|
73
|
-
def self.migration_service version: :v2, &block
|
|
76
|
+
def self.migration_service version: :v2, transport: :grpc, &block
|
|
74
77
|
require "google/cloud/bigquery/migration/#{version.to_s.downcase}"
|
|
75
78
|
|
|
76
79
|
package_name = Google::Cloud::Bigquery::Migration
|
|
@@ -78,6 +81,7 @@ module Google
|
|
|
78
81
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
79
82
|
.first
|
|
80
83
|
service_module = Google::Cloud::Bigquery::Migration.const_get(package_name).const_get(:MigrationService)
|
|
84
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
81
85
|
service_module.const_get(:Client).new(&block)
|
|
82
86
|
end
|
|
83
87
|
|
|
@@ -90,9 +94,10 @@ module Google
|
|
|
90
94
|
#
|
|
91
95
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
92
96
|
# Defaults to `:v2`.
|
|
97
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
93
98
|
# @return [boolean] Whether the service is available.
|
|
94
99
|
#
|
|
95
|
-
def self.migration_service_available? version: :v2
|
|
100
|
+
def self.migration_service_available? version: :v2, transport: :grpc
|
|
96
101
|
require "google/cloud/bigquery/migration/#{version.to_s.downcase}"
|
|
97
102
|
package_name = Google::Cloud::Bigquery::Migration
|
|
98
103
|
.constants
|
|
@@ -102,6 +107,10 @@ module Google
|
|
|
102
107
|
service_module = Google::Cloud::Bigquery::Migration.const_get package_name
|
|
103
108
|
return false unless service_module.const_defined? :MigrationService
|
|
104
109
|
service_module = service_module.const_get :MigrationService
|
|
110
|
+
if transport == :rest
|
|
111
|
+
return false unless service_module.const_defined? :Rest
|
|
112
|
+
service_module = service_module.const_get :Rest
|
|
113
|
+
end
|
|
105
114
|
service_module.const_defined? :Client
|
|
106
115
|
rescue ::LoadError
|
|
107
116
|
false
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-bigquery-migration
|
|
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,8 +43,8 @@ dependencies:
|
|
|
43
43
|
- - "~>"
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: '1.6'
|
|
46
|
-
description: The
|
|
47
|
-
|
|
46
|
+
description: The migration service, exposing apis for migration jobs operations, and
|
|
47
|
+
agent management.
|
|
48
48
|
email: googleapis-packages@google.com
|
|
49
49
|
executables: []
|
|
50
50
|
extensions: []
|
|
@@ -77,5 +77,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
77
|
requirements: []
|
|
78
78
|
rubygems_version: 3.6.9
|
|
79
79
|
specification_version: 4
|
|
80
|
-
summary:
|
|
80
|
+
summary: The migration service, exposing apis for migration jobs operations, and agent
|
|
81
|
+
management.
|
|
81
82
|
test_files: []
|