google-cloud-bigquery 1.45.0 → 1.46.1
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 +12 -0
- data/lib/google/cloud/bigquery/project.rb +9 -0
- data/lib/google/cloud/bigquery/service.rb +19 -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 +23 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 608b8602a5b5af958a8041da97abd1a676f5fabca08f2c7c602b4b5fcdf287fd
|
|
4
|
+
data.tar.gz: c2fd47001c69ef30fc37007cef0d2fca3d0f3e8fc706198970ea4d8b5353ed5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 534de3f92ebda331c48ba33767983945ba6a803095e26efe7db43f037272136b582816e3c4650b82ea731c5b7749b5bfcf87075dbc5576d49083051a87fb0f7c
|
|
7
|
+
data.tar.gz: 53cd0d50cfd12a6c79e4501ba0b5771362c5a1fd58af70c3c62748a3d4f20d1e72fa98ef74ff9f67751a1a3883b5a74302a080fa81ed3fb1a9d3d9faf30f591c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
### 1.46.1 (2024-01-26)
|
|
4
|
+
|
|
5
|
+
#### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* Raise an error on mismatching universe domain ([#24485](https://github.com/googleapis/google-cloud-ruby/issues/24485))
|
|
8
|
+
|
|
9
|
+
### 1.46.0 (2024-01-25)
|
|
10
|
+
|
|
11
|
+
#### Features
|
|
12
|
+
|
|
13
|
+
* Support for universe_domain ([#24448](https://github.com/googleapis/google-cloud-ruby/issues/24448))
|
|
14
|
+
|
|
3
15
|
### 1.45.0 (2023-09-25)
|
|
4
16
|
|
|
5
17
|
#### Features
|
|
@@ -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,7 +80,14 @@ 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
|
|
85
|
+
begin
|
|
86
|
+
service.verify_universe_domain!
|
|
87
|
+
rescue Google::Apis::UniverseDomainError => e
|
|
88
|
+
# TODO: Create a Google::Cloud::Error subclass for this.
|
|
89
|
+
raise Google::Cloud::Error, e.message
|
|
90
|
+
end
|
|
73
91
|
service
|
|
74
92
|
end
|
|
75
93
|
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.1
|
|
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-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: concurrent-ruby
|
|
@@ -31,34 +31,42 @@ 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
|
-
name:
|
|
43
|
+
name: google-apis-core
|
|
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: '0.13'
|
|
52
49
|
type: :runtime
|
|
53
50
|
prerelease: false
|
|
54
51
|
version_requirements: !ruby/object:Gem::Requirement
|
|
55
52
|
requirements:
|
|
56
|
-
- - "
|
|
53
|
+
- - "~>"
|
|
57
54
|
- !ruby/object:Gem::Version
|
|
58
|
-
version: 0.
|
|
59
|
-
|
|
55
|
+
version: '0.13'
|
|
56
|
+
- !ruby/object:Gem::Dependency
|
|
57
|
+
name: googleauth
|
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
|
59
|
+
requirements:
|
|
60
|
+
- - "~>"
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: '1.9'
|
|
63
|
+
type: :runtime
|
|
64
|
+
prerelease: false
|
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
66
|
+
requirements:
|
|
67
|
+
- - "~>"
|
|
60
68
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
69
|
+
version: '1.9'
|
|
62
70
|
- !ruby/object:Gem::Dependency
|
|
63
71
|
name: google-cloud-core
|
|
64
72
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -321,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
321
329
|
- !ruby/object:Gem::Version
|
|
322
330
|
version: '0'
|
|
323
331
|
requirements: []
|
|
324
|
-
rubygems_version: 3.
|
|
332
|
+
rubygems_version: 3.5.3
|
|
325
333
|
signing_key:
|
|
326
334
|
specification_version: 4
|
|
327
335
|
summary: API Client library for Google BigQuery
|