google-cloud-bigquery 1.47.0 → 1.48.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/cloud/bigquery/dataset.rb +50 -0
- data/lib/google/cloud/bigquery/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa2cef46925794d89f8a8490fdfc92fc0fb324d0400b3b774d5e4ac361ccc3d3
|
4
|
+
data.tar.gz: 77380e8fb5f297ab9bbc6478e171c34aa22afc83e993f34a76edbea4584d3b9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 231494ea6cfab7158734bf5557dfcf685692295e708211b35ab7d719b672a52d2968cb1d763c8f1b1047fecf17c43f357809cade81c3534cc8577b5d092871ec
|
7
|
+
data.tar.gz: 9920684cfcc772f7bb9503f089a1bd75ba2f1b578351a09fce66120ec5926d55c42b6cecfbbe7942f4965c99aebda078dd8df9df275ce38e11e3cb82e295d90f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 1.48.1 (2024-02-10)
|
4
|
+
|
5
|
+
#### Documentation
|
6
|
+
|
7
|
+
* Correct an example snippet related to storage_billing_model ([#24796](https://github.com/googleapis/google-cloud-ruby/issues/24796))
|
8
|
+
|
9
|
+
### 1.48.0 (2024-02-08)
|
10
|
+
|
11
|
+
#### Features
|
12
|
+
|
13
|
+
* Support accessing storage_ billing_model field in a dataset ([#24755](https://github.com/googleapis/google-cloud-ruby/issues/24755))
|
14
|
+
|
3
15
|
### 1.47.0 (2024-02-05)
|
4
16
|
|
5
17
|
#### Features
|
@@ -412,6 +412,56 @@ module Google
|
|
412
412
|
patch_gapi! :default_encryption_configuration
|
413
413
|
end
|
414
414
|
|
415
|
+
##
|
416
|
+
# Gets the Storage Billing Model for the dataset.
|
417
|
+
#
|
418
|
+
# @see https://cloud.google.com/blog/products/data-analytics/new-bigquery-billing-model-helps-reduce-physical-storage-costs
|
419
|
+
#
|
420
|
+
# @return [String, nil] A string containing the storage billing model, or `nil`.
|
421
|
+
# Possible values of the string are `LOGICAL`, `PHYSICAL`.
|
422
|
+
# It returns `nil` if either the object is a reference (see {#reference?}),
|
423
|
+
# or if the storage billing model is unspecified.
|
424
|
+
#
|
425
|
+
# @example
|
426
|
+
#
|
427
|
+
# require "google/cloud/bigquery"
|
428
|
+
#
|
429
|
+
# bigquery = Google::Cloud::Bigquery.new
|
430
|
+
# dataset = bigquery.dataset "my_dataset"
|
431
|
+
#
|
432
|
+
# storage_billing_model = dataset.storage_billing_model
|
433
|
+
#
|
434
|
+
# @!group Attributes
|
435
|
+
#
|
436
|
+
def storage_billing_model
|
437
|
+
return nil if reference?
|
438
|
+
ensure_full_data!
|
439
|
+
@gapi.storage_billing_model
|
440
|
+
end
|
441
|
+
|
442
|
+
##
|
443
|
+
# Sets the Storage Billing Model for the dataset.
|
444
|
+
#
|
445
|
+
# @see https://cloud.google.com/blog/products/data-analytics/new-bigquery-billing-model-helps-reduce-physical-storage-costs
|
446
|
+
#
|
447
|
+
# @param value [String] The new storage billing model. Accepted values
|
448
|
+
# are `LOGICAL` and `PHYSICAL`.
|
449
|
+
#
|
450
|
+
# @example
|
451
|
+
# require "google/cloud/bigquery"
|
452
|
+
#
|
453
|
+
# bigquery = Google::Cloud::Bigquery.new
|
454
|
+
# dataset = bigquery.dataset "my_dataset"
|
455
|
+
# dataset.storage_billing_model = "LOGICAL"
|
456
|
+
#
|
457
|
+
# @!group Attributes
|
458
|
+
#
|
459
|
+
def storage_billing_model= value
|
460
|
+
ensure_full_data!
|
461
|
+
@gapi.storage_billing_model = value
|
462
|
+
patch_gapi! :storage_billing_model
|
463
|
+
end
|
464
|
+
|
415
465
|
##
|
416
466
|
# Retrieves the access rules for a Dataset. The rules can be updated
|
417
467
|
# when passing a block, see {Dataset::Access} for all the methods
|
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.48.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: 2024-02-
|
12
|
+
date: 2024-02-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|