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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d34a973bdb3882e69aef59eef5faf700369ee5968a411beb422471db2fa7292a
4
- data.tar.gz: f3c2cdaa7a3d382ce800d169f68e6f9cb21b1a404ad0d0dce52f84e033c85ecd
3
+ metadata.gz: 52ed7cbb7e2adda5bd0aaa075f58a720256d8fad4d800058b31d9ed69b0728b5
4
+ data.tar.gz: 9c8f7e8bc2c83d1000389fa9fc2597f27cc952c7f15b113b610a049ffb232077
5
5
  SHA512:
6
- metadata.gz: 0ff5dcf75b9624d62945e957d5290ffad10748eee944773096dca473444d94ced9c94804735da15619c8939fbeb84ff7dc0bb22daa0b734d7da03f083a5b2667
7
- data.tar.gz: 1c438298255aa040820c5786bfc2254ffa483b4a46fdec2d2c0b351f154334d3fe85836c24f7c865efa9958f8e16f9853685871de0652df2184babbded2ccbb5
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
- API Client library for the BigQuery Migration API
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 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 Migration
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 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.5.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 BigQuery Migration Service is a comprehensive solution for migrating
47
- your data warehouse to BigQuery.
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: API Client library for the BigQuery Migration API
80
+ summary: The migration service, exposing apis for migration jobs operations, and agent
81
+ management.
81
82
  test_files: []