google-cloud-bigquery-storage 0.1.0 → 1.0.1
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 +1 -1
- data/lib/google-cloud-bigquery-storage.rb +1 -17
- data/lib/google/cloud/bigquery/storage.rb +33 -7
- data/lib/google/cloud/bigquery/storage/version.rb +1 -1
- metadata +20 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acdb98925912141e565106793a054a285d064c735b1cee2b2bd15f2d4105d1f0
|
4
|
+
data.tar.gz: 754cb59505f1dd37356124d58eb22f58a0df3b6d7f71c97b791b9cf0dd336db6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a66eccc3b8736f468cd127f7d22e0968e3f27b6943183e80faac80c2a6c0d0e846735a43695e9cee946dd6d6e6a9ff0cd20e336437423e3eb78808dbfa2dbc58
|
7
|
+
data.tar.gz: 73887ac95f5670ba6f005006cc3660add4b873074648c1be82e22e35bc8bdf35fba476cce6bc7eb15cbe968e51ceae80bd17dd460b4aab07f37d270610c94890
|
data/AUTHENTICATION.md
CHANGED
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-bigquery-storage
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
|
67
|
+
`::Google::Cloud::Bigquery::Storage::V1::BigQueryRead::Credentials`):
|
68
68
|
|
69
69
|
1. `BIGQUERY_STORAGE_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
2. `BIGQUERY_STORAGE_KEYFILE` - Path to JSON file, or JSON contents
|
data/README.md
CHANGED
@@ -38,7 +38,7 @@ In order to use this library, you first need to go through the following steps:
|
|
38
38
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
39
39
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
|
40
40
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
41
|
-
that will write logs to [
|
41
|
+
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)
|
42
42
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
43
43
|
|
44
44
|
Configuring a Ruby stdlib logger:
|
@@ -16,20 +16,4 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
-
|
20
|
-
require "google/cloud" unless defined? Google::Cloud.new
|
21
|
-
require "google/cloud/config"
|
22
|
-
require "googleauth"
|
23
|
-
|
24
|
-
# Set the default configuration
|
25
|
-
Google::Cloud.configure.add_config! :bigquery_storage do |config|
|
26
|
-
config.add_field! :credentials, nil, match: [String, Hash, Google::Auth::Credentials]
|
27
|
-
config.add_field! :lib_name, nil, match: String
|
28
|
-
config.add_field! :lib_version, nil, match: String
|
29
|
-
config.add_field! :interceptors, nil, match: Array
|
30
|
-
config.add_field! :timeout, nil, match: Numeric
|
31
|
-
config.add_field! :metadata, nil, match: Hash
|
32
|
-
config.add_field! :retry_policy, nil, match: [Hash, Proc]
|
33
|
-
end
|
34
|
-
|
35
|
-
require "google/cloud/bigquery/storage/version"
|
19
|
+
require "google/cloud/bigquery/storage" unless defined? Google::Cloud::Bigquery::Storage::VERSION
|
@@ -16,7 +16,30 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
-
|
19
|
+
# Require this file early so that the version constant gets defined before
|
20
|
+
# requiring "google/cloud". This is because google-cloud-core will load the
|
21
|
+
# entrypoint (gem name) file, which in turn re-requires this file (hence
|
22
|
+
# causing a require cycle) unless the version constant is already defined.
|
23
|
+
require "google/cloud/bigquery/storage/version"
|
24
|
+
|
25
|
+
require "googleauth"
|
26
|
+
gem "google-cloud-core"
|
27
|
+
require "google/cloud" unless defined? ::Google::Cloud.new
|
28
|
+
require "google/cloud/config"
|
29
|
+
|
30
|
+
# Set the default configuration
|
31
|
+
::Google::Cloud.configure.add_config! :bigquery_storage do |config|
|
32
|
+
config.add_field! :endpoint, "bigquerystorage.googleapis.com", match: ::String
|
33
|
+
config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
|
34
|
+
config.add_field! :scope, nil, match: [::Array, ::String]
|
35
|
+
config.add_field! :lib_name, nil, match: ::String
|
36
|
+
config.add_field! :lib_version, nil, match: ::String
|
37
|
+
config.add_field! :interceptors, nil, match: ::Array
|
38
|
+
config.add_field! :timeout, nil, match: ::Numeric
|
39
|
+
config.add_field! :metadata, nil, match: ::Hash
|
40
|
+
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
|
41
|
+
config.add_field! :quota_project, nil, match: ::String
|
42
|
+
end
|
20
43
|
|
21
44
|
module Google
|
22
45
|
module Cloud
|
@@ -39,7 +62,7 @@ module Google
|
|
39
62
|
#
|
40
63
|
# The Read API can be used to read data from BigQuery.
|
41
64
|
#
|
42
|
-
# @param version [String, Symbol] The API version to connect to. Optional.
|
65
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
43
66
|
# Defaults to `:v1`.
|
44
67
|
# @return [BigQueryRead::Client] A client object for the specified version.
|
45
68
|
#
|
@@ -68,8 +91,8 @@ module Google
|
|
68
91
|
# The library version as recorded in instrumentation and logging.
|
69
92
|
# * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
|
70
93
|
# An array of interceptors that are run before calls are executed.
|
71
|
-
# * `timeout` (*type:* `
|
72
|
-
# Default timeout in
|
94
|
+
# * `timeout` (*type:* `Numeric`) -
|
95
|
+
# Default timeout in seconds.
|
73
96
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
74
97
|
# Additional gRPC headers to be sent with the call.
|
75
98
|
# * `retry_policy` (*type:* `Hash`) -
|
@@ -80,14 +103,17 @@ module Google
|
|
80
103
|
# * `:retry_codes` (*type:* `Array<String>`) -
|
81
104
|
# The error codes that should trigger a retry.
|
82
105
|
#
|
83
|
-
# @return [Google::Cloud::Config] The default configuration used by this library
|
106
|
+
# @return [::Google::Cloud::Config] The default configuration used by this library
|
84
107
|
#
|
85
108
|
def self.configure
|
86
|
-
yield Google::Cloud.configure.bigquery_storage if block_given?
|
109
|
+
yield ::Google::Cloud.configure.bigquery_storage if block_given?
|
87
110
|
|
88
|
-
Google::Cloud.configure.bigquery_storage
|
111
|
+
::Google::Cloud.configure.bigquery_storage
|
89
112
|
end
|
90
113
|
end
|
91
114
|
end
|
92
115
|
end
|
93
116
|
end
|
117
|
+
|
118
|
+
helper_path = ::File.join __dir__, "storage", "helpers.rb"
|
119
|
+
require "google/cloud/bigquery/storage/helpers" if ::File.file? helper_path
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigquery-storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 1.0.1
|
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: 2021-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: google-cloud-core
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.5'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.5'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: google-cloud-bigquery-storage-v1
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,19 +25,19 @@ dependencies:
|
|
39
25
|
- !ruby/object:Gem::Version
|
40
26
|
version: '0.0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
28
|
+
name: google-cloud-core
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
48
|
-
type: :
|
33
|
+
version: '1.5'
|
34
|
+
type: :runtime
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
40
|
+
version: '1.5'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: google-style
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,56 +58,56 @@ dependencies:
|
|
72
58
|
requirements:
|
73
59
|
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: '5.
|
61
|
+
version: '5.14'
|
76
62
|
type: :development
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '5.
|
68
|
+
version: '5.14'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: minitest-
|
70
|
+
name: minitest-focus
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
75
|
+
version: '1.1'
|
90
76
|
type: :development
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
80
|
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
82
|
+
version: '1.1'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
|
-
name: minitest-
|
84
|
+
name: minitest-rg
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - "~>"
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
89
|
+
version: '5.2'
|
104
90
|
type: :development
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
96
|
+
version: '5.2'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
98
|
+
name: rake
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
|
-
- - "
|
101
|
+
- - ">="
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
103
|
+
version: '12.0'
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
|
-
- - "
|
108
|
+
- - ">="
|
123
109
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
110
|
+
version: '12.0'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: redcarpet
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
182
|
- !ruby/object:Gem::Version
|
197
183
|
version: '0'
|
198
184
|
requirements: []
|
199
|
-
rubygems_version: 3.
|
185
|
+
rubygems_version: 3.2.6
|
200
186
|
signing_key:
|
201
187
|
specification_version: 4
|
202
188
|
summary: API Client library for the BigQuery Storage API
|