google-cloud-bigquery 1.45.0 → 1.46.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/CHANGELOG.md +6 -0
- data/lib/google/cloud/bigquery/project.rb +9 -0
- data/lib/google/cloud/bigquery/service.rb +13 -1
- data/lib/google/cloud/bigquery/version.rb +1 -1
- data/lib/google/cloud/bigquery.rb +4 -2
- data/lib/google-cloud-bigquery.rb +1 -0
- metadata +9 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd9801fc2474d21f9508686c06ff273871ccdefd23abd2a9783da879fdeeb48e
|
4
|
+
data.tar.gz: a18f34abee5a59bb94b9816ab0fefea986a5e368986e92f9517b4b4026b828eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed6b34f928dd213a2b8bfa5dd75ddc09c310f4ba8ed68e3092280c9bbb3c9e4bc5644e2a89478fdae3cfb38c1eb822cb8ac4f8051cd2b54fc7fafa98ff9bbb48
|
7
|
+
data.tar.gz: 1996a4f5a9ac8b61e645093589522b772b175c5fdf1a9b9c2687c8e6742d9fcc8705fd270d714d2fa5b20fad8b52291a89b4eb91eb757bf672613c299c40fd75
|
data/CHANGELOG.md
CHANGED
@@ -67,6 +67,15 @@ module Google
|
|
67
67
|
@service = service
|
68
68
|
end
|
69
69
|
|
70
|
+
##
|
71
|
+
# The universe domain the client is connected to
|
72
|
+
#
|
73
|
+
# @return [String]
|
74
|
+
#
|
75
|
+
def universe_domain
|
76
|
+
service.universe_domain
|
77
|
+
end
|
78
|
+
|
70
79
|
##
|
71
80
|
# The BigQuery project connected to.
|
72
81
|
#
|
@@ -41,15 +41,26 @@ module Google
|
|
41
41
|
# @private
|
42
42
|
attr_reader :retries, :timeout, :host
|
43
43
|
|
44
|
+
# @private
|
45
|
+
def universe_domain
|
46
|
+
service.universe_domain
|
47
|
+
end
|
48
|
+
|
44
49
|
##
|
45
50
|
# Creates a new Service instance.
|
46
|
-
def initialize project, credentials,
|
51
|
+
def initialize project, credentials,
|
52
|
+
retries: nil,
|
53
|
+
timeout: nil,
|
54
|
+
host: nil,
|
55
|
+
quota_project: nil,
|
56
|
+
universe_domain: nil
|
47
57
|
@project = project
|
48
58
|
@credentials = credentials
|
49
59
|
@retries = retries
|
50
60
|
@timeout = timeout
|
51
61
|
@host = host
|
52
62
|
@quota_project = quota_project
|
63
|
+
@universe_domain = universe_domain
|
53
64
|
end
|
54
65
|
|
55
66
|
def service
|
@@ -69,6 +80,7 @@ module Google
|
|
69
80
|
service.request_options.query["prettyPrint"] = false
|
70
81
|
service.request_options.quota_project = @quota_project if @quota_project
|
71
82
|
service.authorization = @credentials.client
|
83
|
+
service.universe_domain = @universe_domain
|
72
84
|
service.root_url = host if host
|
73
85
|
service
|
74
86
|
end
|
@@ -67,12 +67,13 @@ module Google
|
|
67
67
|
# table = dataset.table "my_table"
|
68
68
|
#
|
69
69
|
def self.new project_id: nil, credentials: nil, scope: nil, retries: nil, timeout: nil, endpoint: nil,
|
70
|
-
project: nil, keyfile: nil
|
70
|
+
project: nil, keyfile: nil, universe_domain: nil
|
71
71
|
scope ||= configure.scope
|
72
72
|
retries ||= configure.retries
|
73
73
|
timeout ||= configure.timeout
|
74
74
|
endpoint ||= configure.endpoint
|
75
75
|
credentials ||= (keyfile || default_credentials(scope: scope))
|
76
|
+
universe_domain ||= configure.universe_domain
|
76
77
|
|
77
78
|
unless credentials.is_a? Google::Auth::Credentials
|
78
79
|
credentials = Bigquery::Credentials.new credentials, scope: scope
|
@@ -84,7 +85,8 @@ module Google
|
|
84
85
|
Bigquery::Project.new(
|
85
86
|
Bigquery::Service.new(
|
86
87
|
project_id, credentials,
|
87
|
-
retries: retries, timeout: timeout, host: endpoint,
|
88
|
+
retries: retries, timeout: timeout, host: endpoint,
|
89
|
+
quota_project: configure.quota_project, universe_domain: universe_domain
|
88
90
|
)
|
89
91
|
)
|
90
92
|
end
|
@@ -140,4 +140,5 @@ Google::Cloud.configure.add_config! :bigquery do |config|
|
|
140
140
|
config.add_field! :retries, nil, match: Integer
|
141
141
|
config.add_field! :timeout, nil, match: Integer
|
142
142
|
config.add_field! :endpoint, default_endpoint, match: String, allow_nil: true
|
143
|
+
config.add_field! :universe_domain, nil, match: String, allow_nil: true
|
143
144
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigquery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.46.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|
@@ -31,34 +31,28 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '0.
|
34
|
+
version: '0.62'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '0.
|
41
|
+
version: '0.62'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: googleauth
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - "
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: 0.16.2
|
49
|
-
- - "<"
|
46
|
+
- - "~>"
|
50
47
|
- !ruby/object:Gem::Version
|
51
|
-
version:
|
48
|
+
version: '1.9'
|
52
49
|
type: :runtime
|
53
50
|
prerelease: false
|
54
51
|
version_requirements: !ruby/object:Gem::Requirement
|
55
52
|
requirements:
|
56
|
-
- - "
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
version: 0.16.2
|
59
|
-
- - "<"
|
53
|
+
- - "~>"
|
60
54
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
55
|
+
version: '1.9'
|
62
56
|
- !ruby/object:Gem::Dependency
|
63
57
|
name: google-cloud-core
|
64
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -321,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
321
315
|
- !ruby/object:Gem::Version
|
322
316
|
version: '0'
|
323
317
|
requirements: []
|
324
|
-
rubygems_version: 3.
|
318
|
+
rubygems_version: 3.5.3
|
325
319
|
signing_key:
|
326
320
|
specification_version: 4
|
327
321
|
summary: API Client library for Google BigQuery
|