google-cloud-bigquery 1.47.0 → 1.48.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/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: 4de4c60c60c2292576d5aa738640a81a268d6bd427c8172e329abdca39402d5c
|
|
4
|
+
data.tar.gz: 7e5a702ac9bf88fdced2bf990e03f896bd927a6f0048cb4bcce739a1677dfd2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b53ff655c2f1cd0d69cc9131dc5850e57d241070c30fa612c608b465ff8defc33296ee7d28cce9ba829de6aea6efdb3a4d29c90c8686e7e861a03647b01d2c73
|
|
7
|
+
data.tar.gz: 9b059241b299394cb5b970199513ce7b1e586ed06d2092b98f1e7e01c5ba9302229568baf02f6f4e23c6da8ed948d31aa563c56472ce61552ea3ed08aec675e8
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
+
# storage_billing_model = 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.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: 2024-02-
|
|
12
|
+
date: 2024-02-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: concurrent-ruby
|