google-cloud-bigquery-migration 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/bigquery/migration/version.rb +1 -1
- data/lib/google/cloud/bigquery/migration.rb +7 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f44d614900df4eaf6c8ce9ed0db6fcc45bc95cd186c379f86c47d2c7062fd39b
|
4
|
+
data.tar.gz: e9edf669ee78c617a5ad4cd527b735e2a92ab2b3ac9cf6c85290cf84573a069d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d584c5265da5c43b457c908552bac4e99ff62b1efee5b5193ed13532b29308b8ccd458c87202e346680dace05af9129dd052cdb71a306224ed423ee0c1b77e4
|
7
|
+
data.tar.gz: 23d0167c4462b74644113ef311b7934c1659637105cdc4dd871dcc6f910d204dd391c36f521229e5da885c22e1ad87f27050703aa8bed9a8091251798c9aa42d
|
data/AUTHENTICATION.md
CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
|
|
112
112
|
To configure your system for this, simply:
|
113
113
|
|
114
114
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
115
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
115
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
116
116
|
3. Write code as if already authenticated.
|
117
117
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ for this library, google-cloud-bigquery-migration, to see the convenience method
|
|
16
16
|
constructing client objects. Reference documentation for the client objects
|
17
17
|
themselves can be found in the client library documentation for the versioned
|
18
18
|
client gems:
|
19
|
-
[google-cloud-bigquery-migration-v2](https://
|
19
|
+
[google-cloud-bigquery-migration-v2](https://cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest).
|
20
20
|
|
21
21
|
See also the [Product Documentation](https://cloud.google.com/bigquery/docs/reference/migration)
|
22
22
|
for more usage information.
|
@@ -37,8 +37,8 @@ In order to use this library, you first need to go through the following steps:
|
|
37
37
|
## Enabling Logging
|
38
38
|
|
39
39
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
40
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
41
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
40
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
41
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
42
42
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
43
43
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
44
44
|
|
@@ -49,9 +49,9 @@ module Google
|
|
49
49
|
# Create a new client object for MigrationService.
|
50
50
|
#
|
51
51
|
# By default, this returns an instance of
|
52
|
-
# [Google::Cloud::Bigquery::Migration::V2::MigrationService::Client](https://
|
53
|
-
# for version V2 of the API.
|
54
|
-
# However, you can specify
|
52
|
+
# [Google::Cloud::Bigquery::Migration::V2::MigrationService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-MigrationService-Client)
|
53
|
+
# for a gRPC client for version V2 of the API.
|
54
|
+
# However, you can specify a different API version by passing it in the
|
55
55
|
# `version` parameter. If the MigrationService service is
|
56
56
|
# supported by that API version, and the corresponding gem is available, the
|
57
57
|
# appropriate versioned client will be returned.
|
@@ -62,7 +62,7 @@ module Google
|
|
62
62
|
#
|
63
63
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
64
64
|
# Defaults to `:v2`.
|
65
|
-
# @return [
|
65
|
+
# @return [::Object] A client object for the specified version.
|
66
66
|
#
|
67
67
|
def self.migration_service version: :v2, &block
|
68
68
|
require "google/cloud/bigquery/migration/#{version.to_s.downcase}"
|
@@ -71,8 +71,8 @@ module Google
|
|
71
71
|
.constants
|
72
72
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
73
73
|
.first
|
74
|
-
|
75
|
-
|
74
|
+
service_module = Google::Cloud::Bigquery::Migration.const_get(package_name).const_get(:MigrationService)
|
75
|
+
service_module.const_get(:Client).new(&block)
|
76
76
|
end
|
77
77
|
|
78
78
|
##
|
@@ -92,7 +92,7 @@ module Google
|
|
92
92
|
# * `timeout` (*type:* `Numeric`) -
|
93
93
|
# Default timeout in seconds.
|
94
94
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
95
|
-
# Additional
|
95
|
+
# Additional headers to be sent with the call.
|
96
96
|
# * `retry_policy` (*type:* `Hash`) -
|
97
97
|
# The retry policy. The value is a hash with the following keys:
|
98
98
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigquery-migration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-bigquery-migration-v2
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
189
|
- !ruby/object:Gem::Version
|
190
190
|
version: '0'
|
191
191
|
requirements: []
|
192
|
-
rubygems_version: 3.
|
192
|
+
rubygems_version: 3.4.2
|
193
193
|
signing_key:
|
194
194
|
specification_version: 4
|
195
195
|
summary: API Client library for the BigQuery Migration API
|