google-cloud-bigquery 1.47.0 → 1.48.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ae89922b3fcbb32e3a271991fd06d3d67cc0691894c67093ba92aab2e075014
4
- data.tar.gz: 8c8191361353fc7e0bf96dbaaedb23ee9bdfc994f5b82168cd7cbf576db8ed89
3
+ metadata.gz: 4de4c60c60c2292576d5aa738640a81a268d6bd427c8172e329abdca39402d5c
4
+ data.tar.gz: 7e5a702ac9bf88fdced2bf990e03f896bd927a6f0048cb4bcce739a1677dfd2e
5
5
  SHA512:
6
- metadata.gz: c6d4a196086e10047f137593a2049af71a8de762581f8bcc43b6f71b50fb903a66ea10fa33851a3d9b6ae7c3c6c6952fd23b4c2881e3b86d2a9e966beb2b01b6
7
- data.tar.gz: d375fad8b9cce3951cf2be7beccc4a064104ce9353f3ebce1799c652ab2bca22d00abf278cb0f2679ce1044af1835b060883a6adcfa8b7a65b9fb387c5330b1c
6
+ metadata.gz: b53ff655c2f1cd0d69cc9131dc5850e57d241070c30fa612c608b465ff8defc33296ee7d28cce9ba829de6aea6efdb3a4d29c90c8686e7e861a03647b01d2c73
7
+ data.tar.gz: 9b059241b299394cb5b970199513ce7b1e586ed06d2092b98f1e7e01c5ba9302229568baf02f6f4e23c6da8ed948d31aa563c56472ce61552ea3ed08aec675e8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 1.48.0 (2024-02-08)
4
+
5
+ #### Features
6
+
7
+ * Support accessing storage_ billing_model field in a dataset ([#24755](https://github.com/googleapis/google-cloud-ruby/issues/24755))
8
+
3
9
  ### 1.47.0 (2024-02-05)
4
10
 
5
11
  #### 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
+ # 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
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Bigquery
19
- VERSION = "1.47.0".freeze
19
+ VERSION = "1.48.0".freeze
20
20
  end
21
21
  end
22
22
  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.47.0
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-05 00:00:00.000000000 Z
12
+ date: 2024-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: concurrent-ruby