google-cloud-bigquery-data_transfer 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -1
- data/lib/google/cloud/bigquery/data_transfer/version.rb +1 -1
- data/lib/google/cloud/bigquery/data_transfer.rb +36 -0
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90a62a276bf268083e34edb143ad70c541909c7d4a4af423e5c189039638e822
|
4
|
+
data.tar.gz: 1493b9ae438cd5c52e9c9a2a1307c6d515b7f596ac500604c4b23d49858230ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f4fe2b950a6960b0ad3d8554dbd35eacfc4d18d3f0f4a73c313c1013d6a320f19c8755fb7a03178b70d486330f6c940f1bbecc9a6172482e7b27df365d4b1e2
|
7
|
+
data.tar.gz: '0148b991156cfcb888835d5724ab83d7bea7a8da7889537327321dc594db4578ea8f4f33c66905ebba1c8579c09d50440483c12260405c843ff989596c1f80c6'
|
data/README.md
CHANGED
@@ -42,9 +42,39 @@ and includes substantial interface changes. Existing code written for earlier
|
|
42
42
|
versions of this library will likely require updates to use this version.
|
43
43
|
See the {file:MIGRATING.md MIGRATING.md} document for more information.
|
44
44
|
|
45
|
+
## Debug Logging
|
46
|
+
|
47
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
48
|
+
your application's integration with the API. When logging is activated, key
|
49
|
+
events such as requests and responses, along with data payloads and metadata
|
50
|
+
such as headers and client configuration, are logged to the standard error
|
51
|
+
stream.
|
52
|
+
|
53
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
54
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
55
|
+
customers, private keys, or other security data that could be compromising if
|
56
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
57
|
+
the principle of least access. Google also recommends that Client Library Debug
|
58
|
+
Logging be enabled only temporarily during active debugging, and not used
|
59
|
+
permanently in production.
|
60
|
+
|
61
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
62
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
63
|
+
list of client library gem names. This will select the default logging behavior,
|
64
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
65
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
66
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
67
|
+
results in logs appearing alongside your application logs in the
|
68
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
69
|
+
|
70
|
+
Debug logging also requires that the versioned clients for this service be
|
71
|
+
sufficiently recent, released after about Dec 10, 2024. If logging is not
|
72
|
+
working, try updating the versioned clients in your bundle or installed gems:
|
73
|
+
[google-cloud-bigquery-data_transfer-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_transfer-v1/latest).
|
74
|
+
|
45
75
|
## Supported Ruby Versions
|
46
76
|
|
47
|
-
This library is supported on Ruby
|
77
|
+
This library is supported on Ruby 3.0+.
|
48
78
|
|
49
79
|
Google provides official support for Ruby versions that are actively supported
|
50
80
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -59,6 +59,11 @@ module Google
|
|
59
59
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
60
60
|
# the `transport` parameter.
|
61
61
|
#
|
62
|
+
# Raises an exception if the currently installed versioned client gem for the
|
63
|
+
# given API version does not support the given transport of the DataTransferService service.
|
64
|
+
# You can determine whether the method will succeed by calling
|
65
|
+
# {Google::Cloud::Bigquery::DataTransfer.data_transfer_service_available?}.
|
66
|
+
#
|
62
67
|
# ## About DataTransferService
|
63
68
|
#
|
64
69
|
# This API allows users to manage their data transfers into BigQuery.
|
@@ -80,6 +85,37 @@ module Google
|
|
80
85
|
service_module.const_get(:Client).new(&block)
|
81
86
|
end
|
82
87
|
|
88
|
+
##
|
89
|
+
# Determines whether the DataTransferService service is supported by the current client.
|
90
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Bigquery::DataTransfer.data_transfer_service}.
|
91
|
+
# If false, that method will raise an exception. This could happen if the given
|
92
|
+
# API version does not exist or does not support the DataTransferService service,
|
93
|
+
# or if the versioned client gem needs an update to support the DataTransferService service.
|
94
|
+
#
|
95
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
96
|
+
# Defaults to `:v1`.
|
97
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
98
|
+
# @return [boolean] Whether the service is available.
|
99
|
+
#
|
100
|
+
def self.data_transfer_service_available? version: :v1, transport: :grpc
|
101
|
+
require "google/cloud/bigquery/data_transfer/#{version.to_s.downcase}"
|
102
|
+
package_name = Google::Cloud::Bigquery::DataTransfer
|
103
|
+
.constants
|
104
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
105
|
+
.first
|
106
|
+
return false unless package_name
|
107
|
+
service_module = Google::Cloud::Bigquery::DataTransfer.const_get package_name
|
108
|
+
return false unless service_module.const_defined? :DataTransferService
|
109
|
+
service_module = service_module.const_get :DataTransferService
|
110
|
+
if transport == :rest
|
111
|
+
return false unless service_module.const_defined? :Rest
|
112
|
+
service_module = service_module.const_get :Rest
|
113
|
+
end
|
114
|
+
service_module.const_defined? :Client
|
115
|
+
rescue ::LoadError
|
116
|
+
false
|
117
|
+
end
|
118
|
+
|
83
119
|
##
|
84
120
|
# Configure the google-cloud-bigquery-data_transfer library.
|
85
121
|
#
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigquery-data_transfer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-cloud-bigquery-data_transfer-v1
|
@@ -63,7 +62,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
63
62
|
licenses:
|
64
63
|
- Apache-2.0
|
65
64
|
metadata: {}
|
66
|
-
post_install_message:
|
67
65
|
rdoc_options: []
|
68
66
|
require_paths:
|
69
67
|
- lib
|
@@ -71,15 +69,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
69
|
requirements:
|
72
70
|
- - ">="
|
73
71
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
72
|
+
version: '3.0'
|
75
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
74
|
requirements:
|
77
75
|
- - ">="
|
78
76
|
- !ruby/object:Gem::Version
|
79
77
|
version: '0'
|
80
78
|
requirements: []
|
81
|
-
rubygems_version: 3.
|
82
|
-
signing_key:
|
79
|
+
rubygems_version: 3.6.2
|
83
80
|
specification_version: 4
|
84
81
|
summary: API Client library for the BigQuery Data Transfer Service API
|
85
82
|
test_files: []
|