google-cloud-bigquery 1.52.1 → 1.53.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eebf05291009387d9603457ebcd1012db3b5090e229847394ac56dec3fdb478a
4
- data.tar.gz: 37e8964677c24c906bc766d2d94f6fffeee743990013c47d73faff07bb591c46
3
+ metadata.gz: '0844316676c10ea437a2901f4693a347786a147f4fb11af5de161083fba04edd'
4
+ data.tar.gz: 3a4a37fa591e5ff75d40680872fda8188dc136d011d9742e35a5d87611ebd81c
5
5
  SHA512:
6
- metadata.gz: 6b7e701313f055af34b881cf8fbad6bb11cf86a5782a3e65d0849eaf8b596cd9ffe046de536f9b222fdfc1fb3024d8db398f860330e60372244b06e6c996c83e
7
- data.tar.gz: 118423b6a2db399957b190395e0ea1e44fb4474d1215cd126c2d564607ac7429a93a1a509d3682ba15b8027f0ee58f30fdddba253bb8fdbabc4ed999343444b4
6
+ metadata.gz: 8a2aed50235c51c87c03a36ab5f2564d46fe5ffc1f98dee981b691c0f818ca3275511ce44ccb7f23786f324092eaf929bfcc2b79c100565984d6fa54e674c001
7
+ data.tar.gz: 56c77db151cf32224701742e1fa707a246ac8dd6df4802aead2eb7e017c8b5e3ce96960d4b1999194c054c20b1bcfdc8ee274d5a1a3954f50d6d6745a5451874
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release History
2
2
 
3
+ ### 1.53.0 (2025-08-12)
4
+
5
+ #### Features
6
+
7
+ * add data governance type to routine ([#30732](https://github.com/googleapis/google-cloud-ruby/issues/30732))
8
+ * Add table resource tags support ([#30804](https://github.com/googleapis/google-cloud-ruby/issues/30804))
9
+ * Support for using Faraday for HTTP requests ([#30760](https://github.com/googleapis/google-cloud-ruby/issues/30760))
10
+
3
11
  ### 1.52.1 (2025-04-25)
4
12
 
5
13
  #### Documentation
@@ -690,6 +690,59 @@ module Google
690
690
  @gapi.determinism_level == "NOT_DETERMINISTIC"
691
691
  end
692
692
 
693
+ ##
694
+ # The data governance type of the routine. Optional.
695
+ #
696
+ # If set to `DATA_MASKING`, the function is validated and made
697
+ # available as a masking function. For more information, see [Create custom
698
+ # masking routines](https://cloud.google.com/bigquery/docs/user-defined-functions#custom-mask).
699
+ #
700
+ # @return [String, nil] The data governance type, or `nil` if not set or the object is a reference
701
+ # (see {#reference?}).
702
+ #
703
+ # @example
704
+ # require "google/cloud/bigquery"
705
+ #
706
+ # bigquery = Google::Cloud::Bigquery.new
707
+ # dataset = bigquery.dataset "my_dataset"
708
+ # routine = dataset.routine "my_routine"
709
+ #
710
+ # routine.data_governance_type #=> "DATA_MASKING"
711
+ #
712
+ # @!group Attributes
713
+ #
714
+ def data_governance_type
715
+ return nil if reference?
716
+ ensure_full_data!
717
+ @gapi.data_governance_type
718
+ end
719
+
720
+ ##
721
+ # Updates the data governance type of the routine. Optional.
722
+ #
723
+ # If set to `DATA_MASKING`, the function is validated and made
724
+ # available as a masking function. For more information, see [Create custom
725
+ # masking routines](https://cloud.google.com/bigquery/docs/user-defined-functions#custom-mask).
726
+ #
727
+ # @param [String, nil] new_data_governance_type The new data governance type. `nil` to unset.
728
+ #
729
+ # @example
730
+ # require "google/cloud/bigquery"
731
+ #
732
+ # bigquery = Google::Cloud::Bigquery.new
733
+ # dataset = bigquery.dataset "my_dataset"
734
+ # routine = dataset.routine "my_routine"
735
+ #
736
+ # routine.data_governance_type = "DATA_MASKING"
737
+ #
738
+ # @!group Attributes
739
+ #
740
+ def data_governance_type= new_data_governance_type
741
+ ensure_full_data!
742
+ @gapi.data_governance_type = new_data_governance_type
743
+ update_gapi!
744
+ end
745
+
693
746
  ##
694
747
  # Updates the routine with changes made in the given block in a single update request. The following attributes
695
748
  # may be set: {Updater#routine_type=}, {Updater#language=}, {Updater#arguments=}, {Updater#return_type=},
@@ -1198,6 +1251,30 @@ module Google
1198
1251
  @gapi.determinism_level = new_determinism_level
1199
1252
  end
1200
1253
 
1254
+ ##
1255
+ # Updates the data governance type of the routine. Optional.
1256
+ #
1257
+ # If set to `DATA_MASKING`, the function is validated and made
1258
+ # available as a masking function. For more information, see [Create custom
1259
+ # masking routines](https://cloud.google.com/bigquery/docs/user-defined-functions#custom-mask).
1260
+ #
1261
+ # @param [String, nil] new_data_governance_type The new data governance type. `nil` to unset.
1262
+ #
1263
+ # @example
1264
+ # require "google/cloud/bigquery"
1265
+ #
1266
+ # bigquery = Google::Cloud::Bigquery.new
1267
+ # dataset = bigquery.dataset "my_dataset"
1268
+ # routine = dataset.routine "my_routine"
1269
+ #
1270
+ # routine.data_governance_type = "DATA_MASKING"
1271
+ #
1272
+ # @!group Attributes
1273
+ #
1274
+ def data_governance_type= new_data_governance_type
1275
+ @gapi.data_governance_type = new_data_governance_type
1276
+ end
1277
+
1201
1278
  def update
1202
1279
  raise "not implemented in #{self.class}"
1203
1280
  end
@@ -1017,6 +1017,77 @@ module Google
1017
1017
  patch_gapi! :labels
1018
1018
  end
1019
1019
 
1020
+ ##
1021
+ # The resource tags associated with this table. Tag keys are globally unique.
1022
+ #
1023
+ # @see https://cloud.google.com/iam/docs/tags-access-control#definitions
1024
+ # For additional information on tags.
1025
+ #
1026
+ # The returned hash is frozen and changes are not allowed. Use
1027
+ # {#resource_tags=} to replace the entire hash.
1028
+ #
1029
+ # @return [Hash<String, String>, nil] A hash containing key/value pairs.
1030
+ #
1031
+ # * The key is the namespaced friendly name of the tag key, e.g.
1032
+ # "12345/environment" where 12345 is the ID of the parent organization
1033
+ # or project resource for this tag key.
1034
+ # * The value is the friendly short name of the tag value, e.g. "production".
1035
+ #
1036
+ # @example
1037
+ # require "google/cloud/bigquery"
1038
+ #
1039
+ # bigquery = Google::Cloud::Bigquery.new
1040
+ # dataset = bigquery.dataset "my_dataset"
1041
+ # table = dataset.table "my_table"
1042
+ #
1043
+ # resource_tags = table.resource_tags
1044
+ # resource_tags["12345/environment"] #=> "production"
1045
+ #
1046
+ # @!group Attributes
1047
+ #
1048
+ def resource_tags
1049
+ return nil if reference?
1050
+ m = @gapi.resource_tags
1051
+ m = m.to_h if m.respond_to? :to_h
1052
+ m.dup.freeze
1053
+ end
1054
+
1055
+ ##
1056
+ # Updates the resource tags associated with this table. Tag keys are globally
1057
+ # unique.
1058
+ #
1059
+ # @see https://cloud.google.com/iam/docs/tags-access-control#definitions
1060
+ # For additional information on tags.
1061
+ #
1062
+ # If the table is not a full resource representation (see
1063
+ # {#resource_full?}), the full representation will be retrieved before
1064
+ # the update to comply with ETag-based optimistic concurrency control.
1065
+ #
1066
+ # @param [Hash<String, String>] resource_tags A hash containing key/value
1067
+ # pairs.
1068
+ #
1069
+ # * The key is the namespaced friendly name of the tag key, e.g.
1070
+ # "12345/environment" where 12345 is the ID of the parent organization
1071
+ # or project resource for this tag key.
1072
+ # * The value is the friendly short name of the tag value, e.g. "production".
1073
+ #
1074
+ # @example
1075
+ # require "google/cloud/bigquery"
1076
+ #
1077
+ # bigquery = Google::Cloud::Bigquery.new
1078
+ # dataset = bigquery.dataset "my_dataset"
1079
+ # table = dataset.table "my_table"
1080
+ #
1081
+ # table.resource_tags = { "12345/environment" => "production" }
1082
+ #
1083
+ # @!group Attributes
1084
+ #
1085
+ def resource_tags= resource_tags
1086
+ reload! unless resource_full?
1087
+ @gapi.resource_tags = resource_tags
1088
+ patch_gapi! :resource_tags
1089
+ end
1090
+
1020
1091
  ##
1021
1092
  # Returns the table's schema. If the table is not a view (See {#view?}),
1022
1093
  # this method can also be used to set, replace, or add to the schema by
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Bigquery
19
- VERSION = "1.52.1".freeze
19
+ VERSION = "1.53.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.52.1
4
+ version: 1.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
8
8
  - Chris Smith
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-25 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal
@@ -56,16 +56,22 @@ dependencies:
56
56
  name: google-apis-core
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0.18'
62
+ - - "<"
60
63
  - !ruby/object:Gem::Version
61
- version: '0.13'
64
+ version: '2'
62
65
  type: :runtime
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - "~>"
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0.18'
72
+ - - "<"
67
73
  - !ruby/object:Gem::Version
68
- version: '0.13'
74
+ version: '2'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: googleauth
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -187,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
193
  - !ruby/object:Gem::Version
188
194
  version: '0'
189
195
  requirements: []
190
- rubygems_version: 3.6.5
196
+ rubygems_version: 3.6.9
191
197
  specification_version: 4
192
198
  summary: API Client library for Google BigQuery
193
199
  test_files: []